mirror of https://github.com/apache/lucene.git
SOLR-6524: Collections left in recovery state after node restart because recovery sleep time increases exponentially between retries
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1633655 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
115fbe39d8
commit
4ed9b12033
|
@ -253,6 +253,9 @@ Bug Fixes
|
|||
|
||||
* SOLR-6573: QueryElevationComponent now works with localParams in the query (janhoy)
|
||||
|
||||
* SOLR-6524: Collections left in recovery state after node restart because recovery sleep time
|
||||
increases exponentially between retries. (Mark Miller, shalin)
|
||||
|
||||
Optimizations
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -529,8 +529,8 @@ public class RecoveryStrategy extends Thread implements ClosableThread {
|
|||
}
|
||||
|
||||
try {
|
||||
// start at 1 sec and work up to a couple min
|
||||
double loopCount = Math.min(Math.pow(2, retries), 600);
|
||||
// start at 1 sec and work up to a min
|
||||
double loopCount = Math.min(Math.pow(2, retries), 60);
|
||||
log.info("Wait {} seconds before trying to recover again ({})", loopCount, retries);
|
||||
for (int i = 0; i < loopCount; i++) {
|
||||
if (isClosed()) break; // check if someone closed us
|
||||
|
|
Loading…
Reference in New Issue