lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a.@apache.org
Subject [20/52] [abbrv] lucene-solr:jira/solr-9858: SOLR-10127: OverseerRolesTest needs to be hardened.
Date Wed, 15 Feb 2017 19:00:24 GMT
SOLR-10127: OverseerRolesTest needs to be hardened.


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

Branch: refs/heads/jira/solr-9858
Commit: df02aa6ddca123da584c5480718aec467d73c7f2
Parents: 387c8e9
Author: markrmiller <markrmiller@apache.org>
Authored: Sun Feb 12 17:43:13 2017 -0500
Committer: markrmiller <markrmiller@apache.org>
Committed: Sun Feb 12 17:43:47 2017 -0500

----------------------------------------------------------------------
 solr/core/src/test/org/apache/solr/cloud/OverseerRolesTest.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/df02aa6d/solr/core/src/test/org/apache/solr/cloud/OverseerRolesTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/cloud/OverseerRolesTest.java b/solr/core/src/test/org/apache/solr/cloud/OverseerRolesTest.java
index 3c2ca87..72b5142 100644
--- a/solr/core/src/test/org/apache/solr/cloud/OverseerRolesTest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/OverseerRolesTest.java
@@ -137,8 +137,10 @@ public class OverseerRolesTest extends SolrCloudTestCase {
         .offer(Utils.toJSON(new ZkNodeProps(Overseer.QUEUE_OPERATION, OverseerAction.QUIT.toLower(),
             "id", leaderId)));
 
-    waitForNewOverseer(10, s -> Objects.equals(leader, s) == false);
+    waitForNewOverseer(15, s -> Objects.equals(leader, s) == false);
 
+    Thread.sleep(1000);
+    
     logOverseerState();
     assertTrue("The old leader should have rejoined election",
         OverseerCollectionConfigSetProcessor.getSortedOverseerNodeNames(zkClient()).contains(leader));


Mime
View raw message