Apache Lucene open-source search software
SOLR-12766: Backoff time for internal requests is never more than 2 seconds
Tomas Fernandez Lobbe9f37a6be9bea
diff --git a/solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.java b/solr/core/src/java/org/apache/solr/update/SolrCmdDistributor.javaindex 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 batchtry {- 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) {