lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r1035517 - /lucene/dev/trunk/solr/src/test/org/apache/solr/cloud/CloudStateUpdateTest.java
Date Tue, 16 Nov 2010 02:28:57 GMT
Author: markrmiller
Date: Tue Nov 16 02:28:57 2010
New Revision: 1035517

URL: http://svn.apache.org/viewvc?rev=1035517&view=rev
Log:
keep trying on this test...

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

Modified: lucene/dev/trunk/solr/src/test/org/apache/solr/cloud/CloudStateUpdateTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/src/test/org/apache/solr/cloud/CloudStateUpdateTest.java?rev=1035517&r1=1035516&r2=1035517&view=diff
==============================================================================
--- lucene/dev/trunk/solr/src/test/org/apache/solr/cloud/CloudStateUpdateTest.java (original)
+++ lucene/dev/trunk/solr/src/test/org/apache/solr/cloud/CloudStateUpdateTest.java Tue Nov
16 02:28:57 2010
@@ -163,7 +163,7 @@ public class CloudStateUpdateTest extend
     // with almost no delay ...
     CloudState cloudState2 = null;
     Map<String,Slice> slices = null;
-    for (int i = 60; i > 0; i--) {
+    for (int i = 75; i > 0; i--) {
       cloudState2 = zkController2.getCloudState();
       slices = cloudState2.getSlices("testcore");
       
@@ -197,12 +197,12 @@ public class CloudStateUpdateTest extend
 
     container3.shutdown();
 
-    // slight pause for watch to trigger
-    for(int i = 0; i < 30; i++) {
+    // slight pause (15s timeout) for watch to trigger
+    for(int i = 0; i < (5 * 15); i++) {
       if(zkController2.getCloudState().getLiveNodes().size() == 2) {
         break;
       }
-      Thread.sleep(50);
+      Thread.sleep(200);
     }
 
     assertEquals(2, zkController2.getCloudState().getLiveNodes().size());



Mime
View raw message