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
|
@ -162,6 +162,13 @@ public class ChaosMonkeySafeLeaderTest extends AbstractFullDistribZkTestBase {
|
||||||
|
|
||||||
waitForThingsToLevelOut(180000);
|
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);
|
checkShardConsistency(batchSize == 1, true);
|
||||||
|
|
||||||
if (VERBOSE) System.out.println("control docs:" + controlClient.query(new SolrQuery("*:*")).getResults().getNumFound() + "\n\n");
|
if (VERBOSE) System.out.println("control docs:" + controlClient.query(new SolrQuery("*:*")).getResults().getNumFound() + "\n\n");
|
||||||
|
|
Loading…
Reference in New Issue