Fix the flaky test - TestZkWatch#749
Merged
junkaixue merged 1 commit intoapache:masterfrom Feb 12, 2020
Merged
Conversation
Contributor
|
@i3wangyi |
narendly
approved these changes
Feb 11, 2020
Contributor
Author
|
Latest mvn test It can be confirmed that the specific test is stabled. However, it looks like the Issue #753 |
Contributor
Author
|
The PR is ready to be merged into master, approved by @alirezazamani @narendly final commit message: Fix the unstable TestZkWatch
|
narendly
pushed a commit
to narendly/helix
that referenced
this pull request
Feb 20, 2020
Fix the unstable TestZkWatch The root cause of the instability is due to the incorrect condition notify time: it should notify other threads after zkClient finishes the unsubscribing the listener
mgao0
pushed a commit
to mgao0/helix
that referenced
this pull request
Mar 6, 2020
Fix the unstable TestZkWatch The root cause of the instability is due to the incorrect condition notify time: it should notify other threads after zkClient finishes the unsubscribing the listener
huizhilu
pushed a commit
to huizhilu/helix
that referenced
this pull request
Aug 16, 2020
Fix the unstable TestZkWatch The root cause of the instability is due to the incorrect condition notify time: it should notify other threads after zkClient finishes the unsubscribing the listener
This file contains hidden or 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
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.
Issues
(Fixes #746 )
Description
(Write a concise description including what, why, how)
The root cause of the instability is due to the incorrect condition notify time: it should notify other threads waiting for the condition after zkClient finishes the unsubscribing all listeners.
Tests
(List the names of added unit/integration tests)
(Copy & paste the result of "mvn test")
Shut down zookeeper at port 2183 in thread main
[ERROR] Tests run: 1086, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4,587.356 s <<< FAILURE! - in TestSuite
[ERROR] testMissingTopStateDurationMonitoring(org.apache.helix.integration.controller.TestControllerLeadershipChange) Time elapsed: 4.779 s <<< FAILURE!
java.lang.AssertionError: expected: but was:
at org.apache.helix.integration.controller.TestControllerLeadershipChange.testMissingTopStateDurationMonitoring(TestControllerLeadershipChange.java:262)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] TestControllerLeadershipChange.testMissingTopStateDurationMonitoring:262 expected: but was:
[INFO]
[ERROR] Tests run: 1086, Failures: 1, Errors: 0, Skipped: 0
[INFO]
Commits
Documentation
(Link the GitHub wiki you added)
Code Quality