lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sha...@apache.org
Subject svn commit: r1597392 - in /lucene/dev/branches/branch_4x: ./ solr/ solr/core/ solr/core/src/test/org/apache/solr/cloud/TestRequestStatusCollectionAPI.java
Date Sun, 25 May 2014 05:21:51 GMT
Author: shalin
Date: Sun May 25 05:21:50 2014
New Revision: 1597392

URL: http://svn.apache.org/r1597392
Log:
SOLR-6112: Increase default timeout of 10 seconds to 90 seconds to pass on slow machines

Modified:
    lucene/dev/branches/branch_4x/   (props changed)
    lucene/dev/branches/branch_4x/solr/   (props changed)
    lucene/dev/branches/branch_4x/solr/core/   (props changed)
    lucene/dev/branches/branch_4x/solr/core/src/test/org/apache/solr/cloud/TestRequestStatusCollectionAPI.java

Modified: lucene/dev/branches/branch_4x/solr/core/src/test/org/apache/solr/cloud/TestRequestStatusCollectionAPI.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/core/src/test/org/apache/solr/cloud/TestRequestStatusCollectionAPI.java?rev=1597392&r1=1597391&r2=1597392&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/core/src/test/org/apache/solr/cloud/TestRequestStatusCollectionAPI.java
(original)
+++ lucene/dev/branches/branch_4x/solr/core/src/test/org/apache/solr/cloud/TestRequestStatusCollectionAPI.java
Sun May 25 05:21:50 2014
@@ -30,6 +30,8 @@ import java.io.IOException;
 
 public class TestRequestStatusCollectionAPI extends BasicDistributedZkTest {
 
+  public static final int MAX_WAIT_TIMEOUT_SECONDS = 90;
+
   public TestRequestStatusCollectionAPI() {
     schemaString = "schema15.xml";      // we need a string id
   }
@@ -60,7 +62,6 @@ public class TestRequestStatusCollection
     }
 
     // Check for the request to be completed.
-    int maxCounter = 10;
 
     NamedList r = null;
     NamedList status = null;
@@ -72,7 +73,7 @@ public class TestRequestStatusCollection
     params.set(OverseerCollectionProcessor.REQUESTID, "1000");
 
     try {
-      message = sendStatusRequestWithRetry(params, 10);
+      message = sendStatusRequestWithRetry(params, MAX_WAIT_TIMEOUT_SECONDS);
     } catch (SolrServerException e) {
       e.printStackTrace();
     } catch (IOException e) {
@@ -115,7 +116,7 @@ public class TestRequestStatusCollection
       params.set("action", CollectionParams.CollectionAction.REQUESTSTATUS.toString());
       params.set(OverseerCollectionProcessor.REQUESTID, "1001");
     try {
-      message = sendStatusRequestWithRetry(params, maxCounter);
+      message = sendStatusRequestWithRetry(params, MAX_WAIT_TIMEOUT_SECONDS);
     } catch (SolrServerException e) {
       e.printStackTrace();
     } catch (IOException e) {
@@ -147,7 +148,7 @@ public class TestRequestStatusCollection
       params.set(OverseerCollectionProcessor.REQUESTID, "1002");
 
     try {
-      message = sendStatusRequestWithRetry(params, 10);
+      message = sendStatusRequestWithRetry(params, MAX_WAIT_TIMEOUT_SECONDS);
     } catch (SolrServerException e) {
       e.printStackTrace();
     } catch (IOException e) {



Mime
View raw message