SOLR-8121: It looks like ChaosMonkeySafeLeader test can fail with replica inconsistency because waitForThingsToLevelOut can pass while state is still changing.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1707618 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2015-10-08 20:58:04 +00:00
parent 37341ab1c8
commit c8b1059b30
1 changed files with 7 additions and 0 deletions

View File

@ -160,6 +160,13 @@ public class ChaosMonkeySafeLeaderTest extends AbstractFullDistribZkTestBase {
Thread.sleep(2000);
waitForThingsToLevelOut(180000);
// even if things were leveled out, a jetty may have just been stopped or something
// we wait again and wait to level out again to make sure the system is not still in flux
Thread.sleep(3000);
waitForThingsToLevelOut(180000);
checkShardConsistency(batchSize == 1, true);