Skip to content

fix(properties): correct topic property name in kafka_batch_max_bytes reference#1775

Open
Feediver1 wants to merge 1 commit into
mainfrom
fix-kafka-batch-max-bytes-topic-prop-name
Open

fix(properties): correct topic property name in kafka_batch_max_bytes reference#1775
Feediver1 wants to merge 1 commit into
mainfrom
fix-kafka-batch-max-bytes-topic-prop-name

Conversation

@Feediver1

Copy link
Copy Markdown
Contributor

Why

The kafka_batch_max_bytes cluster property referenced the topic-level message-size property by the wrong namemessage.max.bytes (the Kafka broker-config name) — in two places: its description and its Related topics link. The correct topic property is max.message.bytes (defined in topic-properties.adoc).

This is the self-managed counterpart to the same error fixed in cloud-docs prose (redpanda-data/cloud-docs#627).

What

  • docs-data/property-overrides.json — corrected both message.max.bytesmax.message.bytes in the kafka_batch_max_bytes override (description + related_topics). This is the source of truth.
  • modules/reference/partials/properties/cluster-properties.adoc and modules/reference/attachments/redpanda-properties-v26.1.10.json — regenerated via doc-tools generate property-docs --tag v26.1.10 --generate-partials (cloud-support tags intact), so the generated artifacts reflect the override.

Diff is limited to this one property: 3 files, 6 lines, all the message.max.bytesmax.message.bytes correction.

Note for reviewers

Regenerating at v26.1.10 surfaced one unrelated drift I deliberately excluded from this PR: topic_memory_per_partition's default rendered as the raw constant DEFAULT_TOPIC_MEMORY_PER_PARTITION instead of the resolved 200 KiB (204800) currently on main. I reverted that line to match main so this PR stays scoped. Worth a separate look — a future auto-docs regen may reintroduce it (looks like a default-resolution regression in the property extractor).

🤖 Generated with Claude Code

… reference

The kafka_batch_max_bytes cluster property referenced the topic-level message
size property as `message.max.bytes` (the Kafka broker-config name) in both its
description and its Related topics link. The correct topic property is
`max.message.bytes` (see topic-properties.adoc). Corrected the override in
docs-data/property-overrides.json and regenerated the property partial + JSON
attachment at tag v26.1.10 with cloud-support intact.

Self-managed counterpart to the same error fixed in cloud-docs prose
(redpanda-data/cloud-docs#627).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Feediver1 Feediver1 requested a review from a team as a code owner July 2, 2026 15:49
@netlify

netlify Bot commented Jul 2, 2026

Copy link
Copy Markdown

Deploy Preview for redpanda-docs-preview ready!

Name Link
🔨 Latest commit 11a993c
🔍 Latest deploy log https://app.netlify.com/projects/redpanda-docs-preview/deploys/6a468877aafa450008f20111
😎 Deploy Preview https://deploy-preview-1775--redpanda-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@Feediver1 Feediver1 requested a review from micheleRP July 2, 2026 15:50
@coderabbitai

coderabbitai Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

This change updates documentation references for the kafka_batch_max_bytes property, replacing mentions of the topic property message.max.bytes with the corrected max.message.bytes in three files: property-overrides.json, the generated redpanda-properties-v26.1.10.json, and cluster-properties.adoc. Both description text and related-topics links were updated consistently across these files.

Estimated code review effort: 1 (Trivial) | ~3 minutes

Compact Metadata

Related issues: None provided
Related PRs: None provided
Suggested labels: documentation
Suggested reviewers: None provided

Poem:
A rabbit hopped through docs so neat,
Fixing bytes that didn't quite meet.
"max.message" now takes its place,
Where "message.max" once left a trace.
Three files aligned, the fix complete! 🐰

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains the change well, but it does not follow the required template sections or include the Jira link, review deadline, previews, and checks. Add the template sections: Description with Jira ticket, Review deadline, Page previews, and Checks with the appropriate checkbox selected.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the main change: correcting the kafka_batch_max_bytes topic property reference.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix-kafka-batch-max-bytes-topic-prop-name

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

♻️ Duplicate comments (1)
modules/reference/attachments/redpanda-properties-v26.1.10.json (1)

7820-7820: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Same missing-anchor issue propagated from the override source.

This generated file mirrors the docs-data/property-overrides.json entry, including the xref that lacks the #max-message-bytes anchor. Fix at the source (property-overrides.json) and regenerate; no separate fix needed here.

Also applies to: 7829-7829

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@modules/reference/attachments/redpanda-properties-v26.1.10.json` at line
7820, The missing-anchor xref is inherited from the override source, so fix the
`property-overrides.json` entry that feeds this generated property description
rather than editing `redpanda-properties-v26.1.10.json` directly. Update the
`max.message.bytes` reference in the relevant override record to include the
`#max-message-bytes` anchor, then regenerate the docs so the generated output
picks up the corrected link. This applies to the override entry used by the
mirrored property descriptions, including the one that produced the
`description` field here.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@docs-data/property-overrides.json`:
- Around line 1207-1210: The xref for max.message.bytes in both related_topics
and description is missing the anchor, so it points to the top of
topic-properties.adoc instead of the property section. Update the references in
property-overrides.json to match the existing pattern used elsewhere in this
file by adding the max-message-bytes anchor to the xref. Use the related_topics
entry and the description text as the places to fix, keeping the same reference
target format as the other max.message.bytes links.

---

Duplicate comments:
In `@modules/reference/attachments/redpanda-properties-v26.1.10.json`:
- Line 7820: The missing-anchor xref is inherited from the override source, so
fix the `property-overrides.json` entry that feeds this generated property
description rather than editing `redpanda-properties-v26.1.10.json` directly.
Update the `max.message.bytes` reference in the relevant override record to
include the `#max-message-bytes` anchor, then regenerate the docs so the
generated output picks up the corrected link. This applies to the override entry
used by the mirrored property descriptions, including the one that produced the
`description` field here.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: b130627c-8d4e-49ec-81be-a25967cc0635

📥 Commits

Reviewing files that changed from the base of the PR and between 1beb0a1 and 11a993c.

📒 Files selected for processing (3)
  • docs-data/property-overrides.json
  • modules/reference/attachments/redpanda-properties-v26.1.10.json
  • modules/reference/partials/properties/cluster-properties.adoc

Comment on lines 1207 to +1210
"related_topics": [
"xref:reference:properties/topic-properties.adoc[`message.max.bytes`]"
"xref:reference:properties/topic-properties.adoc[`max.message.bytes`]"
],
"description": "The default maximum batch size for topics if the topic property xref:reference:properties/topic-properties.adoc[`message.max.bytes`] is not set. If the batch is compressed, the limit applies to the compressed batch size.",
"description": "The default maximum batch size for topics if the topic property xref:reference:properties/topic-properties.adoc[`max.message.bytes`] is not set. If the batch is compressed, the limit applies to the compressed batch size.",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Missing anchor in max.message.bytes xref — link won't jump to the property.

The new xref xref:reference:properties/topic-properties.adoc[max.message.bytes] points to the top of topic-properties.adoc instead of the specific property section. Elsewhere in this same file, references to this property consistently include the anchor, e.g. kafka_max_message_size_upper_limit_bytes uses xref:reference:properties/topic-properties.adoc#max-message-bytes[max.message.bytes]. Apply the same anchor here for both the related_topics entry and the inline reference in description.

🔗 Proposed fix to add the missing anchor
     "related_topics": [
-        "xref:reference:properties/topic-properties.adoc[`max.message.bytes`]"
+        "xref:reference:properties/topic-properties.adoc#max-message-bytes[`max.message.bytes`]"
     ],
-    "description": "The default maximum batch size for topics if the topic property xref:reference:properties/topic-properties.adoc[`max.message.bytes`] is not set. If the batch is compressed, the limit applies to the compressed batch size.",
+    "description": "The default maximum batch size for topics if the topic property xref:reference:properties/topic-properties.adoc#max-message-bytes[`max.message.bytes`] is not set. If the batch is compressed, the limit applies to the compressed batch size.",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"related_topics": [
"xref:reference:properties/topic-properties.adoc[`message.max.bytes`]"
"xref:reference:properties/topic-properties.adoc[`max.message.bytes`]"
],
"description": "The default maximum batch size for topics if the topic property xref:reference:properties/topic-properties.adoc[`message.max.bytes`] is not set. If the batch is compressed, the limit applies to the compressed batch size.",
"description": "The default maximum batch size for topics if the topic property xref:reference:properties/topic-properties.adoc[`max.message.bytes`] is not set. If the batch is compressed, the limit applies to the compressed batch size.",
"related_topics": [
"xref:reference:properties/topic-properties.adoc#max-message-bytes[`max.message.bytes`]"
],
"description": "The default maximum batch size for topics if the topic property xref:reference:properties/topic-properties.adoc#max-message-bytes[`max.message.bytes`] is not set. If the batch is compressed, the limit applies to the compressed batch size.",
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@docs-data/property-overrides.json` around lines 1207 - 1210, The xref for
max.message.bytes in both related_topics and description is missing the anchor,
so it points to the top of topic-properties.adoc instead of the property
section. Update the references in property-overrides.json to match the existing
pattern used elsewhere in this file by adding the max-message-bytes anchor to
the xref. Use the related_topics entry and the description text as the places to
fix, keeping the same reference target format as the other max.message.bytes
links.

@micheleRP micheleRP left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants