-
Notifications
You must be signed in to change notification settings - Fork 14.8k
KAFKA-18854: remove DynamicConfig inner class
#19487
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
|
@gongxuanzhang please revise the title :) |
Thanks for your comment @chia7712 PTAL |
DynamicConfig User and DynamicConfig Client to server module
|
|
||
|
|
||
| public static class Client { | ||
| private static final ConfigDef CONFIG_DEF = QuotaConfig.userAndClientQuotaConfigs(); |
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 we rename this to CLIENT_CONFIGS, since it was clientConfigs?
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.
nice comment
| return USER_CONFIGS.names(); | ||
| } | ||
|
|
||
| public static Map<String, Object> validate(Properties props) { |
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.
those method is useless, so please remove it.
| import java.util.Properties; | ||
| import java.util.Set; | ||
|
|
||
| public class DynamicConfig { |
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.
those helpers are used by ConfigCommand only, so please remove inline this whole class.
|
@chia7712 PTAL |
|
@gongxuanzhang could you please cleanup |
DynamicConfig User and DynamicConfig Client to server moduleDynamicConfig inner class
|
@chia7712 PTAL |
This PR is a umbrella of KAFKA-18854.
The previous PR encountered some compatibility issues, so we decided to
split it and proceed with the migration step by step.
see #19019
Reviewers: PoAn Yang payang@apache.org, Chia-Ping Tsai
chia7712@gmail.com