Skip to content

MINOR: Follow up KAFKA-19080 MetadataLogConfig #19842

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Jun 8, 2025

Conversation

m1a2st
Copy link
Collaborator

@m1a2st m1a2st commented May 28, 2025

See Discussion:
#19371 (comment)

Do the following changes:

  • Update the internal config name with metadata prefix
  • add the warning message for setting
    INTERNAL_METADATA_LOG_SEGMENT_BYTES_CONFIG

Reviewers: Chia-Ping Tsai chia7712@gmail.com

Copy link

github-actions bot commented Jun 5, 2025

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.

@@ -637,6 +637,12 @@ object KafkaMetadataLog extends Logging {
nodeId
)

// Print a warning if users have overridden the internal config
if (config.internalSegmentBytes() != null) {
metadataLog.error(s"Overriding ${MetadataLogConfig.INTERNAL_METADATA_LOG_SEGMENT_BYTES_CONFIG} is only supported for testing. Setting " +
Copy link
Member

Choose a reason for hiding this comment

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

we should print the warnings only if the segment size is configured to small value. please consider comparing the value to METADATA_LOG_SEGMENT_BYTES_DEFAULT

@github-actions github-actions bot removed needs-attention triage PRs from the community labels Jun 6, 2025
@@ -637,6 +637,11 @@ object KafkaMetadataLog extends Logging {
nodeId
)

if (defaultLogConfig.segmentSize() < config.logSegmentBytes()) {
metadataLog.error(s"Overriding ${MetadataLogConfig.METADATA_LOG_SEGMENT_BYTES_CONFIG} is only supported for testing. Setting " +
Copy link
Member

Choose a reason for hiding this comment

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

it should be INTERNAL_METADATA_LOG_SEGMENT_BYTES_CONFIG

@chia7712 chia7712 merged commit df73133 into apache:trunk Jun 8, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Kafka Broker kraft small Small PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants