Skip to content
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-6293] [tests] Harden JobManagerITCase #3796

Closed
wants to merge 1 commit into from

Conversation

tillrohrmann
Copy link
Contributor

One of the unit tests in JobManagerITCase starts a MiniCluster and sends a
LeaderSessionMessage to the JobManager without waiting until the JobManager
has gained leadership. This can lead to a dropped TriggerSavepoint message
which will cause the test to deadlock.

This PR fixes the problem by explicitly waiting for the JobManager to become
the leader.

One of the unit tests in JobManagerITCase starts a MiniCluster and sends a
LeaderSessionMessage to the JobManager without waiting until the JobManager
has gained leadership. This can lead to a dropped TriggerSavepoint message
which will cause the test to deadlock.

This PR fixes the problem by explicitly waiting for the JobManager to become
the leader.
@uce
Copy link
Contributor

uce commented Apr 28, 2017

Good fix. +1 to merge.

@tillrohrmann
Copy link
Contributor Author

Thanks for the review @uce. Merging this PR.

@asfgit asfgit closed this in f3da8f6 Apr 28, 2017
fanyon pushed a commit to fanyon/flink that referenced this pull request May 11, 2017
One of the unit tests in JobManagerITCase starts a MiniCluster and sends a
LeaderSessionMessage to the JobManager without waiting until the JobManager
has gained leadership. This can lead to a dropped TriggerSavepoint message
which will cause the test to deadlock.

This PR fixes the problem by explicitly waiting for the JobManager to become
the leader.

This closes apache#3796.
@tillrohrmann tillrohrmann deleted the fixJobManagerITCase branch July 6, 2017 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants