Skip to content

KAFKA-3373 add 'log' prefix to configurations in KIP-31/32#1049

Closed
becketqin wants to merge 2 commits into
apache:trunkfrom
becketqin:KAFKA-3373
Closed

KAFKA-3373 add 'log' prefix to configurations in KIP-31/32#1049
becketqin wants to merge 2 commits into
apache:trunkfrom
becketqin:KAFKA-3373

Conversation

@becketqin
Copy link
Copy Markdown
Contributor

No description provided.

val LogFlushOffsetCheckpointIntervalMsProp = "log.flush.offset.checkpoint.interval.ms"
val LogPreAllocateProp = "log.preallocate"
val MessageFormatVersionProp = "message.format.version"
val LogMessageFormatVersionProp = "log.message.format.version"
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.

Do you think we can just reuse the definition in LogConfig and append "log."? This will make the relationship clearer and prevent accidental diversion.

sorry for nitpick, but after seeing all the places where same config has entirely different name in Log and Kafka, I'm a bit concerned.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@gwenshap Good idea. That is probably less error prone. I will update the patch.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@gwenshap After taking another look at the current code. It seems the naming is not as simple as a prefix + config name. Many configuration names are not changed in the LogConfig. For example,
log.roll.ms, log.roll.jitter.ms and log.index.size.max.bytes in the KafkaConfig become segment.ms, segment.jitter.ms and segment.index.bytes in the LogConfig.

Also, quite a few log.* configurations in KafkaConfig are not in LogConfig.

As of now I think we'd better just keep it as is but only make the new configurations using the log prefix + configuration name.

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.

Yeah, unfortunately we can't apply this now as a matter of rule.
I mean for the new configuration - can we use "log."+ LogConfig.MessageFormatVersionProp instead of "log.message.format.version".

Not a big deal, but seems like a simple improvement?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@gwenshap Ah I see. Just updated the patch.

@gwenshap
Copy link
Copy Markdown
Contributor

Thanks for the update. Changes look good. Just waiting for tests to finish running on my machine before I merge :)

@asfgit asfgit closed this in ffbe624 Mar 15, 2016
efeg pushed a commit to efeg/kafka that referenced this pull request Jan 29, 2020
mumrah pushed a commit to mumrah/kafka that referenced this pull request Aug 14, 2024
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