You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2018/09/05 10:38:13 UTC

lucene-solr:branch_7x: SOLR-11990: Wait for all nodes to be live before running tests.

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x cd47b88ac -> e03dabb74


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.

(cherry picked from commit df20c4b9e6f9ff3408c7eaf9ceea7a1656a72ff8)


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/e03dabb7
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/e03dabb7
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/e03dabb7

Branch: refs/heads/branch_7x
Commit: e03dabb742bc81f071a7941c330a437610860abd
Parents: cd47b88
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:08:07 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/e03dabb7/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 {