SOLR-11912: Clean up left-over collections and defaults between tests.

This commit is contained in:
Andrzej Bialecki 2018-02-21 16:18:08 +01:00
parent a9f0272380
commit 82a9984071

View File

@ -142,6 +142,9 @@ public class TriggerIntegrationTest extends SolrCloudTestCase {
Stat stat = zkClient().setData(SOLR_AUTOSCALING_CONF_PATH, Utils.toJSON(new ZkNodeProps()), true); Stat stat = zkClient().setData(SOLR_AUTOSCALING_CONF_PATH, Utils.toJSON(new ZkNodeProps()), true);
log.info(SOLR_AUTOSCALING_CONF_PATH + " reset, new znode version {}", stat.getVersion()); log.info(SOLR_AUTOSCALING_CONF_PATH + " reset, new znode version {}", stat.getVersion());
cluster.deleteAllCollections();
cluster.getSolrClient().setDefaultCollection(null);
// restart Overseer. Even though we reset the autoscaling config some already running // restart Overseer. Even though we reset the autoscaling config some already running
// trigger threads may still continue to execute and produce spurious events // trigger threads may still continue to execute and produce spurious events
cluster.stopJettySolrRunner(overseerLeaderIndex); cluster.stopJettySolrRunner(overseerLeaderIndex);