Skip to content

MINOR: Fix incorrect config name and stale links in Log Compaction docs#21942

Open
fru1tworld wants to merge 1 commit intoapache:trunkfrom
fru1tworld:minor-fix-log-compaction-docs
Open

MINOR: Fix incorrect config name and stale links in Log Compaction docs#21942
fru1tworld wants to merge 1 commit intoapache:trunkfrom
fru1tworld:minor-fix-log-compaction-docs

Conversation

@fru1tworld
Copy link
Copy Markdown

@fru1tworld fru1tworld commented Apr 2, 2026

The Log Compaction section incorrectly advised using the broker-level log.cleanup.policy to enable compaction on a particular topic.
The correct topic-level property is cleanup.policy. This also resolves the self-contradiction where the next paragraph described log.cleanup.policy as a broker configuration.

Additionally, replace legacy /documentation.html#brokerconfigs links
with the current Hugo-based /{version}/configuration/broker-configs
pattern.

Changes

  • docs/design/design.md: Replace log.cleanup.policy=compact with cleanup.policy=compact in the per-topic configuration example
  • Add a note that the property can be set via kafka-configs.sh
  • Clarify the relationship between the broker-level log.cleanup.policy and the topic-level cleanup.policy
  • Update two stale /documentation.html#brokerconfigs links to /{version}/configuration/broker-configs

Testing

Documentation-only change. Verified with ./gradlew siteDocsTar --dry-run (BUILD SUCCESSFUL). Confirmed the property names match the source code:

  • TopicConfig.CLEANUP_POLICY_CONFIG = "cleanup.policy" (topic-level)
  • ServerLogConfigs.LOG_CLEANUP_POLICY_CONFIG / LOG_CLEANUP_POLICY_DEFAULT = "delete" (broker-level default)

The Log Compaction section incorrectly advised using the broker-level
`log.cleanup.policy` to enable compaction on a particular topic. The
correct topic-level property is `cleanup.policy`. This also resolves
the self-contradiction where the next paragraph described
`log.cleanup.policy` as a broker configuration.

Additionally, replace legacy `/documentation.html#brokerconfigs` links
with the current Hugo-based `/{version}/configuration/broker-configs`
pattern.
@github-actions github-actions bot added triage PRs from the community docs small Small PRs labels Apr 2, 2026
@github-actions
Copy link
Copy Markdown

A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the triage label
should be removed to prevent this automation from happening again.

@github-actions
Copy link
Copy Markdown

A label of 'needs-attention' was automatically added to this PR in order to raise the
attention of the committers. Once this issue has been triaged, the triage label
should be removed to prevent this automation from happening again.

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

Labels

docs needs-attention small Small PRs triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant