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 2014/03/02 01:32:50 UTC
svn commit: r1573244 -
/lucene/dev/branches/branch_4x/solr/solrj/src/java/org/apache/solr/common/util/RetryUtil.java
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;