-
Notifications
You must be signed in to change notification settings - Fork 15.4k
KAFKA-19642: Replace dynamicPerBrokerConfigs with dynamicDefaultConfigs #20405
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
Changes from 1 commit
daeb1dd
3aab8c6
b15e1c0
8696bdf
6cf7f20
8513d4e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -219,7 +219,6 @@ object DynamicBrokerConfig { | |
| logContext | ||
| ) | ||
| ) { reader => | ||
| val dynamicPerBrokerConfigs = new Properties() | ||
| val dynamicDefaultConfigs = new Properties() | ||
| while (reader.hasNext) { | ||
| val batch = reader.next() | ||
|
|
@@ -231,15 +230,15 @@ object DynamicBrokerConfig { | |
| if (configRecord.resourceName().isEmpty) { | ||
| putOrRemoveIfNull(dynamicDefaultConfigs, configRecord.name(), configRecord.value()) | ||
| } else if (configRecord.resourceName() == config.brokerId.toString) { | ||
| putOrRemoveIfNull(dynamicPerBrokerConfigs, configRecord.name(), configRecord.value()) | ||
| putOrRemoveIfNull(dynamicDefaultConfigs, configRecord.name(), configRecord.value()) | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
| val configHandler = new BrokerConfigHandler(config, quotaManagers) | ||
| configHandler.processConfigChanges("", dynamicPerBrokerConfigs) | ||
| configHandler.processConfigChanges(config.brokerId.toString, dynamicPerBrokerConfigs) | ||
| configHandler.processConfigChanges("", dynamicDefaultConfigs) | ||
| configHandler.processConfigChanges(config.brokerId.toString, dynamicDefaultConfigs) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It seems that we should continue to use dynamicPerBrokerConfigs here?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @junrao |
||
| } | ||
| } | ||
| } | ||
|
|
||
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.
Hmm, this doesn't look right. If
configRecord.resourceName() == config.brokerId.toString, it's a broker level config and it seems that we should use dynamicPerBrokerConfigs.