lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r1034752 - /lucene/dev/trunk/solr/src/test/org/apache/solr/cloud/CloudStateUpdateTest.java
Date Sat, 13 Nov 2010 13:18:11 GMT
Author: markrmiller
Date: Sat Nov 13 13:18:11 2010
New Revision: 1034752

URL: http://svn.apache.org/viewvc?rev=1034752&view=rev
Log:
raise another timeout for 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=1034752&r1=1034751&r2=1034752&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 Sat Nov
13 13:18:11 2010
@@ -215,13 +215,14 @@ public class CloudStateUpdateTest extend
     container2.shutdown();
 
     container2 = init2.initialize();
-
-    Thread.sleep(2000);
     
-    if (!container1.getZkController().getCloudState().liveNodesContain(
-        container2.getZkController().getNodeName())) {
-      // pause some more
-      Thread.sleep(5000);
+    // pause for watch to trigger
+    for(int i = 0; i < 100; i++) {
+      if (container1.getZkController().getCloudState().liveNodesContain(
+          container2.getZkController().getNodeName())) {
+        break;
+      }
+      Thread.sleep(100);
     }
 
     assertTrue(container1.getZkController().getCloudState().liveNodesContain(



Mime
View raw message