mirror of https://github.com/apache/lucene.git
SOLR-5608: Harden test.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1559600 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3b5b96a3ef
commit
1a715dd4d6
|
@ -375,6 +375,11 @@ public class CollectionsAPIDistributedZkTest extends AbstractFullDistribZkTestBa
|
|||
ChaosMonkey.stop(jettys.get(0));
|
||||
ChaosMonkey.stop(jettys.get(1));
|
||||
|
||||
// wait for leaders to settle out
|
||||
for (int i = 1; i < 4; i++) {
|
||||
cloudClient.getZkStateReader().getLeaderRetry("halfdeletedcollection2", "shard" + i);
|
||||
}
|
||||
|
||||
baseUrl = getBaseUrl((HttpSolrServer) clients.get(2));
|
||||
|
||||
// remove a collection
|
||||
|
@ -387,7 +392,7 @@ public class CollectionsAPIDistributedZkTest extends AbstractFullDistribZkTestBa
|
|||
createNewSolrServer("", baseUrl).request(request);
|
||||
|
||||
cloudClient.getZkStateReader().updateClusterState(true);
|
||||
assertFalse(cloudClient.getZkStateReader().getClusterState().hasCollection("halfdeletedcollection2"));
|
||||
assertFalse("Still found collection that should be gone", cloudClient.getZkStateReader().getClusterState().hasCollection("halfdeletedcollection2"));
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue