lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r1573244 - /lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/common/util/RetryUtil.java
Date Sun, 02 Mar 2014 00:32:50 GMT
Author: markrmiller
Date: Sun Mar  2 00:32:49 2014
New Revision: 1573244

URL: http://svn.apache.org/r1573244
Log:
SOLR-5799: Update for Java 6 on 4x

Modified:
    lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/common/util/RetryUtil.java

Modified: lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/common/util/RetryUtil.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/common/util/RetryUtil.java?rev=1573244&r1=1573243&r2=1573244&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/common/util/RetryUtil.java
(original)
+++ lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/common/util/RetryUtil.java
Sun Mar  2 00:32:49 2014
@@ -19,6 +19,9 @@ package org.apache.solr.common.util;
 
 import java.util.concurrent.TimeUnit;
 
+import org.apache.solr.common.SolrException;
+import org.apache.solr.common.SolrException.ErrorCode;
+
 public class RetryUtil {
   public static interface RetryCmd {
     public void execute() throws InterruptedException;
@@ -34,7 +37,7 @@ public class RetryUtil {
           Thread.sleep(intervalms);
           continue;
         }
-        throw t;
+        throw new SolrException(ErrorCode.SERVER_ERROR, t);
       }
       // success
       break;



Mime
View raw message