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 20:47:55 UTC

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

Author: markrmiller
Date: Thu Jan 19 19:47:54 2012
New Revision: 1233551

URL: http://svn.apache.org/viewvc?rev=1233551&view=rev
Log:
zk cmd retries will look for interrupt status of current thread

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=1233551&r1=1233550&r2=1233551&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 19:47:54 2012
@@ -95,6 +95,9 @@ public class ZkCmdExecutor {
         if (exception == null) {
           exception = e;
         }
+        if (Thread.currentThread().isInterrupted()) {
+          throw new InterruptedException();
+        }
         retryDelay(i);
       }
     }