mirror of https://github.com/apache/lucene.git
SOLR-4521: Stop using the 'force' option for recovery replication. This will keep some less common unnecessary replications from happening.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1451660 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3ce9b7d1ac
commit
3a9683d7ac
|
@ -217,6 +217,10 @@ Optimizations
|
|||
|
||||
* SOLR-4364: Admin UI - Locale based number formatting (steffkes)
|
||||
|
||||
* SOLR-4521: Stop using the 'force' option for recovery replication. This
|
||||
will keep some less common unnecessary replications from happening.
|
||||
(Mark Miller, Simon Scofield)
|
||||
|
||||
Other Changes
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -150,7 +150,7 @@ public class RecoveryStrategy extends Thread implements ClosableThread {
|
|||
solrParams.set(ReplicationHandler.MASTER_URL, leaderUrl);
|
||||
|
||||
if (isClosed()) retries = INTERRUPTED;
|
||||
boolean success = replicationHandler.doFetch(solrParams, true); // TODO: look into making force=true not download files we already have?
|
||||
boolean success = replicationHandler.doFetch(solrParams, false);
|
||||
|
||||
if (!success) {
|
||||
throw new SolrException(ErrorCode.SERVER_ERROR, "Replication for recovery failed.");
|
||||
|
|
Loading…
Reference in New Issue