mirror of https://github.com/apache/lucene.git
ensure that we have shard leaders before the tests begin
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1236441 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
231445f166
commit
9469e0e0a7
|
@ -278,6 +278,11 @@ public class FullSolrCloudTest extends AbstractDistributedZkTestCase {
|
|||
}
|
||||
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);
|
||||
|
|
Loading…
Reference in New Issue