You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by tf...@apache.org on 2018/02/27 23:07:42 UTC
lucene-solr:branch_7x: SOLR-12041: Fix random test failure in
ChaosMonkeyNothingIsSafeWithPullReplicasTest
Repository: lucene-solr
Updated Branches:
refs/heads/branch_7x 601c7350c -> 4ccf50080
SOLR-12041: Fix random test failure in ChaosMonkeyNothingIsSafeWithPullReplicasTest
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/4ccf5008
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/4ccf5008
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/4ccf5008
Branch: refs/heads/branch_7x
Commit: 4ccf500800ee497fceb93f4727a89a8a4533bb10
Parents: 601c735
Author: Tomas Fernandez Lobbe <tf...@apache.org>
Authored: Tue Feb 27 15:06:01 2018 -0800
Committer: Tomas Fernandez Lobbe <tf...@apache.org>
Committed: Tue Feb 27 15:07:29 2018 -0800
----------------------------------------------------------------------
.../java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/4ccf5008/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java
----------------------------------------------------------------------
diff --git a/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java b/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java
index be2b7db..c92329c 100644
--- a/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java
+++ b/solr/test-framework/src/java/org/apache/solr/cloud/AbstractFullDistribZkTestBase.java
@@ -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);