-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
fix #2860 #2207 notification of loss of leadership and easy cancel #4125
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shawkins
force-pushed
the
leader
branch
7 times, most recently
from
May 11, 2022 17:40
dadbc86
to
d043c43
Compare
…and easy cancel also removing holding a thread when using start and adding more jitter support and a cleanup of the retry logic
Kudos, SonarCloud Quality Gate passed! |
manusa
approved these changes
May 19, 2022
11 tasks
XComp
added a commit
to XComp/flink
that referenced
this pull request
Jan 19, 2024
…#run() call v5.12.4 allowed us to reuse the LeaderElector. With v6.6.2 (fabric8io/kubernetes-client#4125) this behavior changed. One LeaderElector can only be used until the leadership is lost.
XComp
added a commit
to XComp/flink
that referenced
this pull request
Jan 23, 2024
…#run() call v5.12.4 allowed us to reuse the LeaderElector. With v6.6.2 (fabric8io/kubernetes-client#4125) this behavior changed. One LeaderElector can only be used until the leadership is lost.
XComp
added a commit
to XComp/flink
that referenced
this pull request
Jan 23, 2024
…#run() call v5.12.4 allowed us to reuse the LeaderElector. With v6.6.2 (fabric8io/kubernetes-client#4125) this behavior changed. One LeaderElector can only be used until the leadership is lost.
XComp
added a commit
to XComp/flink
that referenced
this pull request
Jan 23, 2024
…#run() call v5.12.4 allowed us to reuse the LeaderElector. With v6.6.2 (fabric8io/kubernetes-client#4125) this behavior changed. One LeaderElector can only be used until the leadership is lost.
XComp
added a commit
to XComp/flink
that referenced
this pull request
Jan 23, 2024
…#run() call v5.12.4 allowed us to reuse the LeaderElector. With v6.6.2 (fabric8io/kubernetes-client#4125) this behavior changed. One LeaderElector can only be used until the leadership is lost.
XComp
added a commit
to XComp/flink
that referenced
this pull request
Jan 26, 2024
…#run() call v5.12.4 allowed us to reuse the LeaderElector. With v6.6.2 (fabric8io/kubernetes-client#4125) this behavior changed. One LeaderElector can only be used until the leadership is lost.
XComp
added a commit
to XComp/flink
that referenced
this pull request
Jan 26, 2024
…#run() call v5.12.4 allowed us to reuse the LeaderElector. With v6.6.2 (fabric8io/kubernetes-client#4125) this behavior changed. One LeaderElector can only be used until the leadership is lost. An ITCase is added to cover the scenario where the leadership is lost.
XComp
added a commit
to XComp/flink
that referenced
this pull request
Jan 31, 2024
…#run() call v5.12.4 allowed us to reuse the LeaderElector. With v6.6.2 (fabric8io/kubernetes-client#4125) this behavior changed. One LeaderElector can only be used until the leadership is lost. An ITCase is added to cover the scenario where the leadership is lost.
XComp
added a commit
to XComp/flink
that referenced
this pull request
Jan 31, 2024
…#run() call v5.12.4 allowed us to reuse the LeaderElector. With v6.6.2 (fabric8io/kubernetes-client#4125) this behavior changed. One LeaderElector can only be used until the leadership is lost. An ITCase is added to cover the scenario where the leadership is lost.
XComp
added a commit
to apache/flink
that referenced
this pull request
Feb 1, 2024
…#run() call v5.12.4 allowed us to reuse the LeaderElector. With v6.6.2 (fabric8io/kubernetes-client#4125) this behavior changed. One LeaderElector can only be used until the leadership is lost. An ITCase is added to cover the scenario where the leadership is lost.
XComp
added a commit
to XComp/flink
that referenced
this pull request
Feb 1, 2024
…#run() call (cherry-picked from FLINK-34007) v5.12.4 allowed us to reuse the LeaderElector. With v6.6.2 (fabric8io/kubernetes-client#4125) this behavior changed. One LeaderElector can only be used until the leadership is lost. An ITCase is added to cover the scenario where the leadership is lost.
XComp
added a commit
to XComp/flink
that referenced
this pull request
Feb 5, 2024
…#run() call (cherry-picked from FLINK-34007) v5.12.4 allowed us to reuse the LeaderElector. With v6.6.2 (fabric8io/kubernetes-client#4125) this behavior changed. One LeaderElector can only be used until the leadership is lost. An ITCase is added to cover the scenario where the leadership is lost.
XComp
added a commit
to XComp/flink
that referenced
this pull request
Feb 7, 2024
…#run() call (cherry-picked from FLINK-34007) v5.12.4 allowed us to reuse the LeaderElector. With v6.6.2 (fabric8io/kubernetes-client#4125) this behavior changed. One LeaderElector can only be used until the leadership is lost. An ITCase is added to cover the scenario where the leadership is lost.
XComp
added a commit
to apache/flink
that referenced
this pull request
Feb 13, 2024
…#run() call (cherry-picked from FLINK-34007) v5.12.4 allowed us to reuse the LeaderElector. With v6.6.2 (fabric8io/kubernetes-client#4125) this behavior changed. One LeaderElector can only be used until the leadership is lost. An ITCase is added to cover the scenario where the leadership is lost.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Fix #2860
Fix #2207
This attempts to clear up some of the threading and logic related to leader election. When using the start method it removes the need to hold a thread, and all other tasks are handled through the common pool. This is not fully non-blocking as the lock operations - get, create, update do not yet expose non-blocking calls.
This also refined the Utils scheduling methods to ensure that task execution does not overlap and adds the ability to supply the completion future and a delay supplier to match the needs of the leader loop logic.
Type of change
test, version modification, documentation, etc.)
Checklist