You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ab...@apache.org on 2018/09/17 09:43:52 UTC
[06/47] lucene-solr:jira/solr-12709: SOLR-11990: Wait for all nodes
to be live before running tests.
SOLR-11990: Wait for all nodes to be live before running tests.
A few tests have failed on jenkins where the very first call to Solr to set the policy fails because no live nodes were found. This commit adds a 30 second (max) wait for nodes to be registered live in ZK before attempting to run any test.
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/df20c4b9
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/df20c4b9
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/df20c4b9
Branch: refs/heads/jira/solr-12709
Commit: df20c4b9e6f9ff3408c7eaf9ceea7a1656a72ff8
Parents: b6ee0ed
Author: Shalin Shekhar Mangar <sh...@apache.org>
Authored: Wed Sep 5 16:07:10 2018 +0530
Committer: Shalin Shekhar Mangar <sh...@apache.org>
Committed: Wed Sep 5 16:07:10 2018 +0530
----------------------------------------------------------------------
solr/core/src/test/org/apache/solr/cloud/TestWithCollection.java | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/df20c4b9/solr/core/src/test/org/apache/solr/cloud/TestWithCollection.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/cloud/TestWithCollection.java b/solr/core/src/test/org/apache/solr/cloud/TestWithCollection.java
index 208b869..b822a24 100644
--- a/solr/core/src/test/org/apache/solr/cloud/TestWithCollection.java
+++ b/solr/core/src/test/org/apache/solr/cloud/TestWithCollection.java
@@ -111,6 +111,7 @@ public class TestWithCollection extends SolrCloudTestCase {
cluster.stopJettySolrRunner(i - 1);
}
}
+ cluster.waitForAllNodes(30);
}
private void deleteChildrenRecursively(String path) throws Exception {