-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-31782][runtime] Makes DefaultLeaderElectionService implement MultipleComponentLeaderElectionDriver.Listener #22640
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
6a65db6 to
f20dedd
Compare
zentol
left a comment
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.
I don't really follow the UUID change. If the multiCLES got by without it so far, what do we need it for now?
the HA backend should be the owner of the session ID: Theoretically, it could provide such a session ID.
Sure, is either ZK/k8s doing that though? Would we gain anything by it?
The initial motivation was to align it with But I can hide the sessionID again to reduce the diff. I might have overestimated the consequences of keeping it the way the |
|
New rebase onto FLINK-32177 that fixes the conflicts with |
|
Rebase after adding the checkstyle fix to FLINK-32177 and rebasing it to master |
…ultipleComponentLeaderElectionDriver.Listener Signed-off-by: Matthias Pohl <matthias.pohl@aiven.io>
Signed-off-by: Matthias Pohl <matthias.pohl@aiven.io>
…tener.isLeader again Signed-off-by: Matthias Pohl <matthias.pohl@aiven.io>
Signed-off-by: Matthias Pohl <matthias.pohl@aiven.io>
|
Rebased to |
What is the purpose of the change
Makes
DefaultLeaderElectionServiceimplementMultipleComponentLeaderElectionDriver.Listenerbesides theLeaderElectionEventHandlerinterface.Brief change log
DefaultLeaderElectionServiceimplementMultipleComponentLeaderElectionDriver.ListenerMultipleComponentLeaderElectionDriver.Listenerin a way thatisLeaderrequires the session ID to be passed in instead of generating it internally. This aligns more with howLeaderElectionEventHandlerwas implemented. It also makes more sense because the HA backend should be the owner of the session ID: Theoretically, it could provide such a session ID.Verifying this change
MultipleComponentLeaderElectionDriver.Listenermethods.Does this pull request potentially affect one of the following parts:
@Public(Evolving): noDocumentation