You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ab...@apache.org on 2018/09/17 09:44:33 UTC

[47/47] lucene-solr:jira/solr-12709: SOLR-12709: Clean up statics.

SOLR-12709: Clean up statics.


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

Branch: refs/heads/jira/solr-12709
Commit: 8837c2d69c9d79a7d42bab0ae8a37cad9342a032
Parents: 4a6dfda
Author: Andrzej Bialecki <ab...@apache.org>
Authored: Mon Sep 17 11:43:18 2018 +0200
Committer: Andrzej Bialecki <ab...@apache.org>
Committed: Mon Sep 17 11:43:18 2018 +0200

----------------------------------------------------------------------
 .../solr/cloud/autoscaling/sim/TestSimAutoScaling.java    | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/8837c2d6/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestSimAutoScaling.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestSimAutoScaling.java b/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestSimAutoScaling.java
index 6cbb132..4b0b790 100644
--- a/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestSimAutoScaling.java
+++ b/solr/core/src/test/org/apache/solr/cloud/autoscaling/sim/TestSimAutoScaling.java
@@ -15,6 +15,7 @@ import org.apache.solr.common.SolrInputField;
 import org.apache.solr.common.util.NamedList;
 import org.apache.solr.common.util.TimeSource;
 import org.apache.solr.util.LogLevel;
+import org.junit.AfterClass;
 import org.junit.BeforeClass;
 import org.junit.Test;
 import org.slf4j.Logger;
@@ -34,8 +35,8 @@ public class TestSimAutoScaling extends SimSolrCloudTestCase {
   private static final int SPEED = 500;
   private static final int NUM_NODES = 200;
 
-  private static final long BATCH_SIZE = 2000000;
-  private static final long NUM_BATCHES = 500000;
+  private static final long BATCH_SIZE = 200000;
+  private static final long NUM_BATCHES = 5000000;
   private static final long ABOVE_SIZE = 20000000;
 
 
@@ -50,6 +51,11 @@ public class TestSimAutoScaling extends SimSolrCloudTestCase {
     cluster.simSetUseSystemCollection(false);
   }
 
+  @AfterClass
+  public static void tearDownCluster() throws Exception {
+    solrClient = null;
+  }
+
   @Test
   public void testScaleUp() throws Exception {
     String collectionName = "testScaleUp_collection";