-
Notifications
You must be signed in to change notification settings - Fork 14.3k
KAFKA-13610: Deprecate log.cleaner.enable configuration #19472
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@frankvicky Thanks for the PR. In KIP-1148, you mentioned that "We should document that users should no longer set this configuration to false
after we deprecate it.". Does that mean the LogCleaner will be always enabled after AK 5.0 (remove configuration)? Or it will be always enabled after 4.1 (deprecate configuration)?

BTW, can you also remove unused logCleanerEnable
in KafkaConfig? Thanks.
val logCleanerEnable = getBoolean(CleanerConfig.LOG_CLEANER_ENABLE_PROP) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR. Left one small comment.
And follow @FrankYang0529's question, should we mention a bit about the impact of this change and what users should expect in the docs?
@@ -68,7 +69,8 @@ public class CleanerConfig { | |||
public static final String LOG_CLEANER_DEDUPE_BUFFER_LOAD_FACTOR_DOC = "Log cleaner dedupe buffer load factor. The percentage full the dedupe buffer can become. A higher value " + | |||
"will allow more log to be cleaned at once but will lead to more hash collisions"; | |||
public static final String LOG_CLEANER_BACKOFF_MS_DOC = "The amount of time to sleep when there are no logs to clean"; | |||
public static final String LOG_CLEANER_ENABLE_DOC = "Enable the log cleaner process to run on the server. Should be enabled if using any topics with a cleanup.policy=compact including the internal offsets topic. If disabled those topics will not be compacted and continually grow in size."; | |||
public static final String LOG_CLEANER_ENABLE_DOC = "This configuration has been deprecated and will be remove in Kafka 5.0. User shouldn't set it to false anymore." + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Add a space at the end of the sentence.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will add a reference to KIP-1148. It should be enough.
Hi @FrankYang0529 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR, left a comment
@@ -68,7 +69,8 @@ public class CleanerConfig { | |||
public static final String LOG_CLEANER_DEDUPE_BUFFER_LOAD_FACTOR_DOC = "Log cleaner dedupe buffer load factor. The percentage full the dedupe buffer can become. A higher value " + | |||
"will allow more log to be cleaned at once but will lead to more hash collisions"; | |||
public static final String LOG_CLEANER_BACKOFF_MS_DOC = "The amount of time to sleep when there are no logs to clean"; | |||
public static final String LOG_CLEANER_ENABLE_DOC = "Enable the log cleaner process to run on the server. Should be enabled if using any topics with a cleanup.policy=compact including the internal offsets topic. If disabled those topics will not be compacted and continually grow in size."; | |||
public static final String LOG_CLEANER_ENABLE_DOC = "This configuration has been deprecated and will be removed in Kafka 5.0. Users should not set it to false to prepare for its future removal. " + |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you also add @Deprecated
on LOG_CLEANER_ENABLE_DOC
, the DOC
variable also a part of public API, like this PR 4121a89
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you.
@@ -68,7 +69,9 @@ public class CleanerConfig { | |||
public static final String LOG_CLEANER_DEDUPE_BUFFER_LOAD_FACTOR_DOC = "Log cleaner dedupe buffer load factor. The percentage full the dedupe buffer can become. A higher value " + | |||
"will allow more log to be cleaned at once but will lead to more hash collisions"; | |||
public static final String LOG_CLEANER_BACKOFF_MS_DOC = "The amount of time to sleep when there are no logs to clean"; | |||
public static final String LOG_CLEANER_ENABLE_DOC = "Enable the log cleaner process to run on the server. Should be enabled if using any topics with a cleanup.policy=compact including the internal offsets topic. If disabled those topics will not be compacted and continually grow in size."; | |||
@Deprecated(since = "4.1") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Deprecated(since = "4.1", forRemoval = true)
JIRA: KAFKA-13610 This patch deprecates the
log.cleaner.enable
configuration. It's part of
KIP-1148.
Reviewers: Chia-Ping Tsai [email protected], PoAn Yang
[email protected], Ken Huang [email protected], Jhen-Yung Hsu
[email protected]