Skip to content

Commit

Permalink
Fix the unstable test TestZeroReplicaAvoidance. (apache#603)
Browse files Browse the repository at this point in the history
Fix the unstable test TestZeroReplicaAvoidance by waiting.
This is a temporary resolution before we fix issue apache#526. Marked it in the TODO comment so easier for us to remove the wait in batch later.
  • Loading branch information
jiajunwang committed Feb 7, 2020
1 parent 45089b8 commit 8d61e0e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ public void testWagedRebalancer() throws Exception {
String db = "Test-DB-" + stateModel;
createResourceWithWagedRebalance(CLUSTER_NAME, db, stateModel, partition, replica, replica);
}
// TODO remove this sleep after fix https://github.com/apache/helix/issues/526
Thread.sleep(1000);
Assert.assertTrue(_clusterVerifier.verifyByPolling(50000L, 100L));

_startListen = true;
Expand Down

0 comments on commit 8d61e0e

Please sign in to comment.