You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2014/03/24 03:28:05 UTC

svn commit: r1580703 - /lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/RecoveryZkTest.java

Author: markrmiller
Date: Mon Mar 24 02:28:05 2014
New Revision: 1580703

URL: http://svn.apache.org/r1580703
Log:
tests: improve this test.

Modified:
    lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/RecoveryZkTest.java

Modified: lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/RecoveryZkTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/RecoveryZkTest.java?rev=1580703&r1=1580702&r2=1580703&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/RecoveryZkTest.java (original)
+++ lucene/dev/trunk/solr/core/src/test/org/apache/solr/cloud/RecoveryZkTest.java Mon Mar 24 02:28:05 2014
@@ -62,9 +62,15 @@ public class RecoveryZkTest extends Abst
     
     // start a couple indexing threads
     
-    int[] maxDocList = new int[] {300, 700, 1200, 1350, 5000, 15000};
+    int[] maxDocList = new int[] {300, 700, 1200, 1350, 3000};
+    int[] maxDocNightlyList = new int[] {3000, 7000, 12000, 30000, 45000, 60000};
     
-    int maxDoc = maxDocList[random().nextInt(maxDocList.length - 1)];
+    int maxDoc;
+    if (!TEST_NIGHTLY) {
+      maxDoc = maxDocList[random().nextInt(maxDocList.length - 1)];
+    } else {
+      maxDoc = maxDocNightlyList[random().nextInt(maxDocList.length - 1)];
+    }
     
     indexThread = new StopableIndexingThread(controlClient, cloudClient, "1", true, maxDoc);
     indexThread.start();
@@ -100,7 +106,7 @@ public class RecoveryZkTest extends Abst
     
     Thread.sleep(1000);
   
-    waitForThingsToLevelOut(90);
+    waitForThingsToLevelOut(120);
     
     Thread.sleep(2000);