lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sha...@apache.org
Subject lucene-solr:master: SOLR-11990: Wait for all nodes to be live before running tests.
Date Wed, 05 Sep 2018 10:37:28 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/master b6ee0ed5d -> df20c4b9e


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/master
Commit: df20c4b9e6f9ff3408c7eaf9ceea7a1656a72ff8
Parents: b6ee0ed
Author: Shalin Shekhar Mangar <shalin@apache.org>
Authored: Wed Sep 5 16:07:10 2018 +0530
Committer: Shalin Shekhar Mangar <shalin@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 {


Mime
View raw message