lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r1451660 - in /lucene/dev/trunk/solr: CHANGES.txt core/src/java/org/apache/solr/cloud/RecoveryStrategy.java
Date Fri, 01 Mar 2013 17:40:34 GMT
Author: markrmiller
Date: Fri Mar  1 17:40:34 2013
New Revision: 1451660

URL: http://svn.apache.org/r1451660
Log:
SOLR-4521: Stop using the 'force' option for recovery replication. This will keep some less
common unnecessary replications from happening.

Modified:
    lucene/dev/trunk/solr/CHANGES.txt
    lucene/dev/trunk/solr/core/src/java/org/apache/solr/cloud/RecoveryStrategy.java

Modified: lucene/dev/trunk/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/CHANGES.txt?rev=1451660&r1=1451659&r2=1451660&view=diff
==============================================================================
--- lucene/dev/trunk/solr/CHANGES.txt (original)
+++ lucene/dev/trunk/solr/CHANGES.txt Fri Mar  1 17:40:34 2013
@@ -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
 ----------------------
 

Modified: lucene/dev/trunk/solr/core/src/java/org/apache/solr/cloud/RecoveryStrategy.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/core/src/java/org/apache/solr/cloud/RecoveryStrategy.java?rev=1451660&r1=1451659&r2=1451660&view=diff
==============================================================================
--- lucene/dev/trunk/solr/core/src/java/org/apache/solr/cloud/RecoveryStrategy.java (original)
+++ lucene/dev/trunk/solr/core/src/java/org/apache/solr/cloud/RecoveryStrategy.java Fri Mar
 1 17:40:34 2013
@@ -150,7 +150,7 @@ public class RecoveryStrategy extends Th
       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.");



Mime
View raw message