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:
Mark Robert Miller 2013-03-01 17:40:34 +00:00
parent 3ce9b7d1ac
commit 3a9683d7ac
2 changed files with 5 additions and 1 deletions

View File

@ -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
----------------------

View File

@ -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.");