-
Notifications
You must be signed in to change notification settings - Fork 590
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
Switch from ZK to Kafka Admin Client #1569
Switch from ZK to Kafka Admin Client #1569
Conversation
This converts the default |
@tomncooper Thanks for the PR! I will try to review it within this week. |
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.
@tomncooper Thanks for the PR!
Made a first pass and left a few comments.
cruise-control/src/main/java/com/linkedin/kafka/cruisecontrol/KafkaCruiseControlUtils.java
Outdated
Show resolved
Hide resolved
...ontrol/src/main/java/com/linkedin/kafka/cruisecontrol/config/KafkaZkTopicConfigProvider.java
Outdated
Show resolved
Hide resolved
...-control/src/main/java/com/linkedin/kafka/cruisecontrol/config/KafkaTopicConfigProvider.java
Outdated
Show resolved
Hide resolved
deb24a2
to
80fe8b6
Compare
...rol/src/main/java/com/linkedin/kafka/cruisecontrol/config/KafkaAdminTopicConfigProvider.java
Outdated
Show resolved
Hide resolved
...rol/src/main/java/com/linkedin/kafka/cruisecontrol/config/KafkaAdminTopicConfigProvider.java
Outdated
Show resolved
Hide resolved
...e-control/src/main/java/com/linkedin/kafka/cruisecontrol/config/constants/MonitorConfig.java
Outdated
Show resolved
Hide resolved
...rol/src/main/java/com/linkedin/kafka/cruisecontrol/config/KafkaAdminTopicConfigProvider.java
Outdated
Show resolved
Hide resolved
...rol/src/main/java/com/linkedin/kafka/cruisecontrol/config/KafkaAdminTopicConfigProvider.java
Outdated
Show resolved
Hide resolved
...rol/src/main/java/com/linkedin/kafka/cruisecontrol/config/KafkaAdminTopicConfigProvider.java
Outdated
Show resolved
Hide resolved
...rol/src/main/java/com/linkedin/kafka/cruisecontrol/config/KafkaAdminTopicConfigProvider.java
Outdated
Show resolved
Hide resolved
...-control/src/main/java/com/linkedin/kafka/cruisecontrol/config/KafkaTopicConfigProvider.java
Outdated
Show resolved
Hide resolved
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 changes! Left more comments.
f6319f5
to
95e8ef1
Compare
cfa4dcb
to
858b2a9
Compare
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 update!
Left a few initial comments, will take a closer look at KafkaAdminTopicConfigProvider.java
later.
...-control/src/main/java/com/linkedin/kafka/cruisecontrol/config/KafkaTopicConfigProvider.java
Outdated
Show resolved
Hide resolved
...rol/src/main/java/com/linkedin/kafka/cruisecontrol/config/KafkaAdminTopicConfigProvider.java
Outdated
Show resolved
Hide resolved
...rol/src/main/java/com/linkedin/kafka/cruisecontrol/config/KafkaAdminTopicConfigProvider.java
Outdated
Show resolved
Hide resolved
...-control/src/main/java/com/linkedin/kafka/cruisecontrol/config/KafkaTopicConfigProvider.java
Outdated
Show resolved
Hide resolved
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 updates! Left comments.
...rol/src/main/java/com/linkedin/kafka/cruisecontrol/config/KafkaAdminTopicConfigProvider.java
Outdated
Show resolved
Hide resolved
...rol/src/main/java/com/linkedin/kafka/cruisecontrol/config/KafkaAdminTopicConfigProvider.java
Outdated
Show resolved
Hide resolved
83ecc95
to
ac760f7
Compare
@tomncooper the build seems to have failed due to style issues:
|
ac760f7
to
7463236
Compare
Sorry about that. I keep hitting checkstyle issues (I need to tweak my IDE). I have made a pre-commit hook to run checkstyle before each commit. I submitted a PR (#1584) in case any other devs might find that useful. |
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.
Left a few nits. Once they are addressed, the PR looks good to me.
...rol/src/main/java/com/linkedin/kafka/cruisecontrol/config/KafkaAdminTopicConfigProvider.java
Outdated
Show resolved
Hide resolved
...rol/src/main/java/com/linkedin/kafka/cruisecontrol/config/KafkaAdminTopicConfigProvider.java
Outdated
Show resolved
Hide resolved
...-control/src/main/java/com/linkedin/kafka/cruisecontrol/config/KafkaTopicConfigProvider.java
Outdated
Show resolved
Hide resolved
...-control/src/main/java/com/linkedin/kafka/cruisecontrol/config/KafkaTopicConfigProvider.java
Outdated
Show resolved
Hide resolved
...-control/src/main/java/com/linkedin/kafka/cruisecontrol/config/KafkaTopicConfigProvider.java
Outdated
Show resolved
Hide resolved
...-control/src/main/java/com/linkedin/kafka/cruisecontrol/config/KafkaTopicConfigProvider.java
Outdated
Show resolved
Hide resolved
Hi @tomncooper -- do you think we can address the remaining items this week to merge this PR? |
Hi @efeg, yes, I got sidetracked with some other things. I will try and address these this week. |
Hi @efeg, I think I addressed all your comments. Thanks. |
Signed-off-by: Thomas Cooper <[email protected]>
* Changed ZK based provider to use old class name and gave new Kafka Admin provider new name * Added deprecated annotation to old ZK provider and additional javadoc explaining the deprecation. * Switched to using the configured admin client timeout from the main config class * Fixed Copy Right date
… parent class Signed-off-by: Thomas Cooper <[email protected]>
…nstance from LoadMonitor Signed-off-by: Thomas Cooper <[email protected]>
Signed-off-by: Thomas Cooper <[email protected]>
…n the KafkaAdminTopicConfigProvider Signed-off-by: Thomas Cooper <[email protected]>
…common config key to abstract parent class Signed-off-by: Thomas Cooper <[email protected]>
…afka Admin Topic Config Provider Signed-off-by: Thomas Cooper <[email protected]>
Signed-off-by: Thomas Cooper <[email protected]>
Signed-off-by: Thomas Cooper <[email protected]>
84ed9c9
to
4cbfd8f
Compare
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 updates! LGTM.
This PR partially resolves #1415.
To keep code review easier I am proposing to make changes in stages, starting with the
KafkaTopicConfigProvider
and then moving on to the other classes which useAdminZkClient
.