SOLR-12739: Clear all collections in TestCollectionStateWatchers setup so that the collections created by test methods are spread evenly in the cluster.

This commit is contained in:
Shalin Shekhar Mangar 2018-10-16 12:14:08 +05:30
parent 8d3810df54
commit aa0a5289e6
1 changed files with 1 additions and 0 deletions

View File

@ -62,6 +62,7 @@ public class TestCollectionStateWatchers extends SolrCloudTestCase {
@Before
public void prepareCluster() throws Exception {
cluster.deleteAllCollections();
int missingServers = CLUSTER_SIZE - cluster.getJettySolrRunners().size();
for (int i = 0; i < missingServers; i++) {
cluster.startJettySolrRunner();