allow another 1/2 second on forward retries

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1346897 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2012-06-06 14:04:52 +00:00
parent 496b94e39d
commit f2765722fa
1 changed files with 3 additions and 1 deletions

View File

@ -49,6 +49,8 @@ import org.apache.solr.util.DefaultSolrThreadFactory;
public class SolrCmdDistributor {
private static final int MAX_RETRIES_ON_FORWARD = 6;
// TODO: shut this thing down
// TODO: this cannot be per instance...
static ThreadPoolExecutor commExecutor = new ThreadPoolExecutor(0,
@ -351,7 +353,7 @@ public class SolrCmdDistributor {
// if there is a retry url, we want to retry...
// TODO: but we really should only retry on connection errors...
if (sreq.retries < 5 && sreq.node.checkRetry()) {
if (sreq.retries < MAX_RETRIES_ON_FORWARD && sreq.node.checkRetry()) {
sreq.retries++;
sreq.rspCode = 0;
sreq.exception = null;