You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by tf...@apache.org on 2018/09/13 15:46:37 UTC

lucene-solr:branch_7x: SOLR-12766: Backoff time for internal requests is never more than 2 seconds

Repository: lucene-solr
Updated Branches:
  refs/heads/branch_7x 456a58e86 -> be78e1b6d


SOLR-12766: Backoff time for internal requests is never more than 2 seconds


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/be78e1b6
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/be78e1b6
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/be78e1b6

Branch: refs/heads/branch_7x
Commit: be78e1b6df4d5f3be58975768ca1633d70871f8a
Parents: 456a58e
Author: Tomas Fernandez Lobbe <tf...@apache.org>
Authored: Thu Sep 13 08:43:10 2018 -0700
Committer: Tomas Fernandez Lobbe <tf...@apache.org>
Committed: Thu Sep 13 08:46:25 2018 -0700

----------------------------------------------------------------------
 solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/be78e1b6/solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java b/solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java
index 3a65f17..d7388f0 100644
--- a/solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java
+++ b/solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java
@@ -170,7 +170,7 @@ public class SolrCmdDistributor implements Closeable {
     if (resubmitList.size() > 0) {
       // Only backoff once for the full batch
       try {
-        int backoffTime = retryPause * resubmitList.get(0).req.retries;
+        int backoffTime = Math.min(retryPause * resubmitList.get(0).req.retries, 2000);
         log.debug("Sleeping {}ms before re-submitting {} requests", backoffTime, resubmitList.size());
         Thread.sleep(backoffTime);
       } catch (InterruptedException e) {