Skip to content

Conversation

@Feediver1
Copy link
Contributor

@Feediver1 Feediver1 commented Aug 15, 2025

Description

Resolves https://redpandadata.atlassian.net/browse/DOC-422
Review deadline: Monday August 18th

Page previews

log_compression_type cluster property

compression.type topic property

Checks

  • New feature
  • Content gap
  • Support Follow-up
  • Small fix (typos, links, copyedits, etc)

@Feediver1 Feediver1 requested a review from a team as a code owner August 15, 2025 19:57
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 15, 2025

Important

Review skipped

Auto incremental reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

📝 Walkthrough

Walkthrough

The PR updates documentation in two AsciiDoc files:

  • modules/reference/pages/properties/cluster-properties.adoc: Adds an IMPORTANT note to log_compression_type stating it exists for Apache Kafka compatibility, appears in Admin API topic descriptions, and is otherwise ignored.
  • modules/reference/pages/properties/topic-properties.adoc: Adds an IMPORTANT note before compression.type with the same compatibility/visibility/ignored message.
    No code or API changes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Assessment against linked issues

Objective Addressed Explanation
Clarify that only 'producer' value of log_compression_type has effect; remove/avoid listing other options (DOC-422) Note claims property is ignored rather than clarifying only 'producer' is effective; other options not removed.

Assessment against linked issues: Out-of-scope changes

Code Change Explanation
Add IMPORTANT note about compression.type being for Kafka compatibility and ignored (modules/reference/pages/properties/topic-properties.adoc, Topic Configuration Properties > compression.type section) DOC-422 targets cluster property log_compression_type only; topic compression.type behavior was not part of the stated objective.

Suggested reviewers

  • mattschumpert
  • micheleRP
  • deniscoady
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch DOC-422

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

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

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@netlify
Copy link

netlify bot commented Aug 15, 2025

Deploy Preview for redpanda-docs-preview ready!

Name Link
🔨 Latest commit 9b8fafa
🔍 Latest deploy log https://app.netlify.com/projects/redpanda-docs-preview/deploys/68a36e0267930900089a34f3
😎 Deploy Preview https://deploy-preview-1320--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.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🧹 Nitpick comments (3)
modules/reference/pages/properties/cluster-properties.adoc (2)

3765-3767: Avoid implying unsupported options are honored

To fully meet DOC-422 (“Prefer removing or not listing the other options to avoid implying they are supported”), please either:

  • Reduce Accepted Values to only producer, or
  • Annotate non-producer values as “compatibility only; ignored by broker”.

Example (outside changed lines; illustrative AsciiDoc snippet):

*Accepted Values:* `producer`

Or:

*Accepted Values:* `producer`. The following values are accepted for Kafka compatibility but ignored by the broker: `gzip`, `snappy`, `lz4`, `zstd`, `none`.

3757-3760: Resolve contradiction between note and description

After the IMPORTANT note, the description says “Default topic compression type” and references topic override behavior, which reads as if the broker will apply a compression algorithm. That conflicts with the clarified behavior.

Proposed wording (outside changed lines):

  • Replace “Default topic compression type.” with: “Default for the Kafka-compatible compression.type property. Redpanda does not recompress data; see note above.”
  • Keep the override sentence but add: “The value is used for compatibility only; the broker always preserves producer compression.”

This prevents users from thinking the broker will compress on their behalf.

modules/reference/pages/properties/topic-properties.adoc (1)

372-380: Fix misleading description and values to align with broker behavior

Immediately after the note, the text says “The type of compression algorithm to apply for all messages of a topic…”, which suggests the broker enforces compression. In Redpanda, compression is producer-controlled.

Suggested follow-ups (outside changed lines):

  • Replace that first paragraph with: “This property is provided for Kafka compatibility. Redpanda does not enforce or change compression for stored data; configure compression in your producers.”
  • In the “Values” list, either list only producer or annotate the others as “compatibility only; ignored”.

Example “Values” block:

**Values**:
- `producer` — Use the compression chosen by producers. This is the only value with effect in Redpanda.
- `none`, `gzip`, `lz4`, `snappy`, `zstd` — Accepted for Kafka compatibility; ignored by the broker.

Also consider adding a brief cross-link to “Configure Producers” for setting producer-side compression.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

💡 Knowledge Base configuration:

  • MCP integration is disabled by default for public repositories
  • Jira integration is disabled by default for public repositories
  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 6838bb8 and 4cc215c.

📒 Files selected for processing (2)
  • modules/reference/pages/properties/cluster-properties.adoc (1 hunks)
  • modules/reference/pages/properties/topic-properties.adoc (1 hunks)

@Feediver1 Feediver1 requested a review from rockwotj August 15, 2025 20:17
@Feediver1 Feediver1 requested a review from rockwotj August 15, 2025 22:04
Copy link
Contributor

@kbatuigas kbatuigas left a comment

Choose a reason for hiding this comment

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

No blockers, but one thing that is still confusing to me is - if these values are ignored, is there still any override (on log_compression_type by compression.type, if set) that takes place? Not sure if the override still needs to be mentioned?

@rockwotj
Copy link
Contributor

No blockers, but one thing that is still confusing to me is - if these values are ignored, is there still any override (on log_compression_type by compression.type, if set) that takes place? Not sure if the override still needs to be mentioned?

yeah the override takes place, but it's only for really for migration tooling to look at and see the value was accepted as a topic property

doc review suggestions

Co-authored-by: Kat Batuigas <[email protected]>
@Feediver1 Feediver1 merged commit b98bf1b into main Aug 18, 2025
7 checks passed
@Feediver1 Feediver1 deleted the DOC-422 branch August 18, 2025 18:33
@coderabbitai coderabbitai bot mentioned this pull request Aug 22, 2025
4 tasks
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.

4 participants