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 2012/01/19 22:01:08 UTC

svn commit: r1233568 - /lucene/dev/branches/solrcloud/solr/solrj/src/java/org/apache/solr/common/cloud/ZkCmdExecutor.java

Author: markrmiller
Date: Thu Jan 19 21:01:08 2012
New Revision: 1233568

URL: http://svn.apache.org/viewvc?rev=1233568&view=rev
Log:
cap time between retries

Modified:
    lucene/dev/branches/solrcloud/solr/solrj/src/java/org/apache/solr/common/cloud/ZkCmdExecutor.java

Modified: lucene/dev/branches/solrcloud/solr/solrj/src/java/org/apache/solr/common/cloud/ZkCmdExecutor.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/solrcloud/solr/solrj/src/java/org/apache/solr/common/cloud/ZkCmdExecutor.java?rev=1233568&r1=1233567&r2=1233568&view=diff
==============================================================================
--- lucene/dev/branches/solrcloud/solr/solrj/src/java/org/apache/solr/common/cloud/ZkCmdExecutor.java (original)
+++ lucene/dev/branches/solrcloud/solr/solrj/src/java/org/apache/solr/common/cloud/ZkCmdExecutor.java Thu Jan 19 21:01:08 2012
@@ -129,7 +129,7 @@ public class ZkCmdExecutor {
   protected void retryDelay(int attemptCount) {
     if (attemptCount > 0) {
       try {
-        Thread.sleep(attemptCount * retryDelay);
+        Thread.sleep(Math.min(10000, attemptCount * retryDelay));
       } catch (InterruptedException e) {
         LOG.debug("Failed to sleep: " + e, e);
       }