Apache Lucene open-source search software
raise timeout and try to un-ignore this test
Mark Robert Miller228a32406230
diff --git a/solr/core/src/test/org/apache/solr/cloud/LeaderElectionTest.java b/solr/core/src/test/org/apache/solr/cloud/LeaderElectionTest.javaindex 3403c09b8cd..1f4e53e552a 100644--- a/solr/core/src/test/org/apache/solr/cloud/LeaderElectionTest.java+++ b/solr/core/src/test/org/apache/solr/cloud/LeaderElectionTest.java@@ -32,15 +32,12 @@ import org.apache.solr.common.cloud.SolrZkClient;import org.apache.solr.common.cloud.ZkCoreNodeProps;import org.apache.solr.common.cloud.ZkNodeProps;import org.apache.solr.common.cloud.ZkStateReader;-import org.apache.solr.core.SolrConfig;import org.apache.zookeeper.KeeperException;import org.apache.zookeeper.KeeperException.NoNodeException;import org.junit.AfterClass;import org.junit.BeforeClass;-import org.junit.Ignore;import org.junit.Test;-@Ignorepublic class LeaderElectionTest extends SolrTestCaseJ4 {static final int TIMEOUT = 30000;@@ -156,7 +153,7 @@ public class LeaderElectionTest extends SolrTestCaseJ4 {private String getLeaderUrl(final String collection, final String slice)throws KeeperException, InterruptedException {- int iterCount = 30;+ int iterCount = 60;while (iterCount-- > 0)try {byte[] data = zkClient.getData(@@ -166,7 +163,7 @@ public class LeaderElectionTest extends SolrTestCaseJ4 {ZkNodeProps.load(data));return leaderProps.getCoreUrl();} catch (NoNodeException e) {- Thread.sleep(100);+ Thread.sleep(500);}throw new RuntimeException("Could not get leader props");}