You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ct...@apache.org on 2018/10/22 23:35:15 UTC

[30/50] [abbrv] lucene-solr:jira/solr-12746: SOLR-12739: Clear all collections in TestCollectionStateWatchers setup so that the collections created by test methods are spread evenly in the cluster.

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


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/f996957c
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/f996957c
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/f996957c

Branch: refs/heads/jira/solr-12746
Commit: f996957cf89e6e92e45c66bbe57a6d6e8c34bf20
Parents: 136c95e
Author: Shalin Shekhar Mangar <sh...@apache.org>
Authored: Tue Oct 16 12:14:08 2018 +0530
Committer: Cassandra Targett <ct...@apache.org>
Committed: Sun Oct 21 15:46:47 2018 -0500

----------------------------------------------------------------------
 .../org/apache/solr/common/cloud/TestCollectionStateWatchers.java   | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/f996957c/solr/solrj/src/test/org/apache/solr/common/cloud/TestCollectionStateWatchers.java
----------------------------------------------------------------------
diff --git a/solr/solrj/src/test/org/apache/solr/common/cloud/TestCollectionStateWatchers.java b/solr/solrj/src/test/org/apache/solr/common/cloud/TestCollectionStateWatchers.java
index 51ee814..63f7b3e 100644
--- a/solr/solrj/src/test/org/apache/solr/common/cloud/TestCollectionStateWatchers.java
+++ b/solr/solrj/src/test/org/apache/solr/common/cloud/TestCollectionStateWatchers.java
@@ -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();