SOLR-12041: Fix random test failure in ChaosMonkeyNothingIsSafeWithPullReplicasTest

This commit is contained in:
Tomas Fernandez Lobbe 2018-02-27 15:06:01 -08:00
parent d21e104de2
commit 029432e936
1 changed files with 1 additions and 1 deletions

View File

@ -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);