KAFKA-8286; Leader Election Admin RPC (KIP-460)#6686
Conversation
Also remove any remaining references to "preferred".
hachikuji
left a comment
There was a problem hiding this comment.
Thanks for the patch. Left a few initial comments.
jsancio
left a comment
There was a problem hiding this comment.
Thanks for the feedback. I'll address your comments today.
Regarding the server/controller side of the changes feel free to take a glance but hold off on a detail review. I found a major issue with the implementation that I have addressed and I am in the process of cleaning up.
cc @mumrah
hachikuji
left a comment
There was a problem hiding this comment.
Just a few more comments. The controller changes look pretty clean.
hachikuji
left a comment
There was a problem hiding this comment.
Did another pass over the client-side changes. Will look at the server stuff next.
|
In terms of error handling, I think these are the main cases:
Just want to check high level if there are any additional cases to check for and if we agree from an API perspective on how they should be handled. |
Do not assume that if the admin client receives an empty set of partitions when it did not provide any partitions that it means that we had a cluster authoriazation error.
I filled the following issues. I will be working on them right after this PR. |
hachikuji
left a comment
There was a problem hiding this comment.
Thanks for the updates. Looking good overall. It would be nice to see some integration/system tests.
When the requesting elections for all of the topic partitions, do not return topic partitions that didn't need to change leader.
hachikuji
left a comment
There was a problem hiding this comment.
Thanks for the updates. Left some more comments.
|
retest this please |
1 similar comment
|
retest this please |
|
retest this please |
hachikuji
left a comment
There was a problem hiding this comment.
Thanks for the patch! LGTM.
|
JDK 8 and Scala 2.11 passes. There is one failure in JDK 11 and Scala 2.12
|
|
retest this please |
) Implements KIP-460: https://cwiki.apache.org/confluence/display/KAFKA/KIP-460%3A+Admin+Leader+Election+RPC. Reviewers: Jun Rao <junrao@gmail.com>, Jason Gustafson <jason@confluent.io>
Implements KIP-460: https://cwiki.apache.org/confluence/display/KAFKA/KIP-460%3A+Admin+Leader+Election+RPC
Pending:
Committer Checklist (excluded from commit message)