-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-25235][tests] re-enable zookeeper test #18949
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
[FLINK-25235][tests] re-enable zookeeper test #18949
Conversation
b1cd905 to
b6c65b2
Compare
flink-runtime/src/main/java/org/apache/flink/runtime/minicluster/MiniCluster.java
Outdated
Show resolved
Hide resolved
flink-runtime/src/main/java/org/apache/flink/runtime/minicluster/MiniCluster.java
Outdated
Show resolved
Hide resolved
flink-runtime/src/main/java/org/apache/flink/runtime/minicluster/MiniCluster.java
Outdated
Show resolved
Hide resolved
b6c65b2 to
793d98f
Compare
autophagy
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 think this looks good to me - thanks for addressing my comments 🙂
793d98f to
7941056
Compare
XComp
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.
Thanks @metaswirl and @autophagy for the contribution. I did another pass over it. The changes look sufficient now as far as I can see. I did some slight adjustments to the code structure and added more comments to describe the special setup of the TestingMiniCluster with multiple JobManager. PTAL, @metaswirl and feel free to squash and rebase the branch if you agree
d8094ba to
0024e51
Compare
|
I squashed and rebased the branch after an offline 👍 from @metaswirl |
…leader election (see FLINK-24038) The TestingMiniCluster had to be adapted a bit to make this work. The new multi-component leader election assumes that there's a single leader election instance available per JobManager that is closed as soon as the JobManager is shut down. The TestingMiniCluster used a single leader election that's shared between multiple JobManagers and closed after all these JMs are shutdown. The new implementation creates an individual HighAvailabilityServices instance per JM and closes this instance as soon as the JM shuts down to revoke the leadership and enable other JMs to pick the leadership up again.
0024e51 to
f42ce82
Compare
|
I created a follow-up ticket FLINK-26630 that covers the missing sharing of certain HA components like the |
|
The CI run was success and I verified that ZooKeeperLeaderElectionITCase ran as part of that build. I merged the PR. Thanks again for the contribution |
Related to https://issues.apache.org/jira/browse/FLINK-25235
Re-enabling test