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:
Mark Robert Miller 2012-01-26 23:05:21 +00:00
parent 231445f166
commit 9469e0e0a7
1 changed files with 5 additions and 0 deletions

View File

@ -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);