From 9f37a6be9bea011a98d769692560ea41d6fb3d08 Mon Sep 17 00:00:00 2001 From: Tomas Fernandez Lobbe Date: Thu, 13 Sep 2018 08:43:10 -0700 Subject: [PATCH] SOLR-12766: Backoff time for internal requests is never more than 2 seconds --- .../src/java/org/apache/solr/update/SolrCmdDistributor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 3a65f170d7b..d7388f0062c 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) {