KAFKA-5647: Use KafkaZkClient in ReassignPartitionsCommand and PreferredReplicaLeaderElectionCommand#4260
KAFKA-5647: Use KafkaZkClient in ReassignPartitionsCommand and PreferredReplicaLeaderElectionCommand#4260omkreddy wants to merge 3 commits intoapache:trunkfrom
Conversation
|
b0dcf9f to
19ecfa8
Compare
|
Thanks for the PR. Since we are in the process of converting some of these tools to AdminClient, maybe we can do that instead? We have a PR from @tombentley for |
There was a problem hiding this comment.
Yes, we need the import
|
@junrao your thoughts on this? |
junrao
left a comment
There was a problem hiding this comment.
@omkreddy : Thanks for the patch. The plan in KIP-183 is to deprecate the zookeeper option in PreferredReplicaCommand and not remove the zookeeper code. So, it's probably still useful to get this patch in so that we can remove the old ZkClient dependency sooner. A few minor comments below. Also, it's probably better to replace all the usages of TopicAndPartition with TopicPartition class from ReassignPartitionsCommand.
There was a problem hiding this comment.
Could we add the return type?
There was a problem hiding this comment.
Could we just use createRecursive to create the full path?
There was a problem hiding this comment.
Could we just use createRecursive to create the full path?
|
@junrao, what is your plan for removing |
|
@ijuma : Yes, we probably can't remove ZkUtils and AdminUtils any time soon. I am just not sure when we can deprecate the zookeeper option in the tools. We probably don't want to keep using the old ZK utils there. |
3b3dfcd to
e6c1455
Compare
|
@junrao Thanks for the review. Updated the PR with review comments. Pls take a look. Will update remaining test classes in another PR. |
|
@junrao pinging for review |
e6c1455 to
4c15081
Compare
|
retest this please |
|
@junrao pinging for review |
|
@omkreddy : Thanks for the patch. Sorry for the delay. LGTM. |
Committer Checklist (excluded from commit message)