lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r1236441 - /lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/FullSolrCloudTest.java
Date Thu, 26 Jan 2012 23:05:22 GMT
Author: markrmiller
Date: Thu Jan 26 23:05:21 2012
New Revision: 1236441

URL: http://svn.apache.org/viewvc?rev=1236441&view=rev
Log:
ensure that we have shard leaders before the tests begin

Modified:
    lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/FullSolrCloudTest.java

Modified: lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/FullSolrCloudTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/FullSolrCloudTest.java?rev=1236441&r1=1236440&r2=1236441&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/FullSolrCloudTest.java (original)
+++ lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/FullSolrCloudTest.java Thu Jan
26 23:05:21 2012
@@ -278,6 +278,11 @@ public class FullSolrCloudTest extends A
         }
         Thread.sleep(500);
       }
+
+      // also make sure we have a leader for each shard
+      for (int i = 1; i <= sliceCount; i++) {
+        zkStateReader.getLeaderProps(DEFAULT_COLLECTION, "shard" + i, 10000);
+      }
     }
 
     updateMappingsFromZk(this.jettys, this.clients);



Mime
View raw message