mirror of https://github.com/apache/lucene.git
SOLR-12041: Fix random test failure in ChaosMonkeyNothingIsSafeWithPullReplicasTest
This commit is contained in:
parent
d21e104de2
commit
029432e936
|
@ -2104,7 +2104,7 @@ public abstract class AbstractFullDistribZkTestBase extends AbstractDistribZkTes
|
|||
containers.put(runner.getNodeName(), runner.getCoreContainer());
|
||||
}
|
||||
for(Slice s:collection.getSlices()) {
|
||||
Replica leader = s.getLeader();
|
||||
Replica leader = zkStateReader.getLeaderRetry(collectionName, s.getName(), (int)timeout.timeLeft(TimeUnit.MILLISECONDS));
|
||||
long leaderIndexVersion = -1;
|
||||
while (!timeout.hasTimedOut()) {
|
||||
leaderIndexVersion = getIndexVersion(leader);
|
||||
|
|
Loading…
Reference in New Issue