mirror of https://github.com/apache/lucene.git
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:
parent
37341ab1c8
commit
c8b1059b30
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue