mirror of https://github.com/apache/lucene.git
harden test
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1423507 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5b6bd1aa53
commit
68637790e0
|
@ -303,10 +303,13 @@ public class OverseerTest extends SolrTestCaseJ4 {
|
|||
reader.updateClusterState(true);
|
||||
ClusterState state = reader.getClusterState();
|
||||
Map<String,Slice> slices = state.getSlicesMap("collection1");
|
||||
for (String name : slices.keySet()) {
|
||||
cloudStateSliceCount += slices.get(name).getReplicasMap().size();
|
||||
if (slices != null) {
|
||||
for (String name : slices.keySet()) {
|
||||
cloudStateSliceCount += slices.get(name).getReplicasMap().size();
|
||||
}
|
||||
if (coreCount == cloudStateSliceCount) break;
|
||||
}
|
||||
if (coreCount == cloudStateSliceCount) break;
|
||||
|
||||
Thread.sleep(200);
|
||||
}
|
||||
assertEquals("Unable to verify all cores have been assigned an id in cloudstate",
|
||||
|
|
Loading…
Reference in New Issue