You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ma...@apache.org on 2013/07/02 04:40:30 UTC
svn commit: r1498761 - in /lucene/dev/branches/branch_4x: ./ solr/
solr/core/ solr/core/src/java/org/apache/solr/cloud/SyncStrategy.java
Author: markrmiller
Date: Tue Jul 2 02:40:30 2013
New Revision: 1498761
URL: http://svn.apache.org/r1498761
Log:
SOLR-4981: Don't try and sync after SyncStrategy is closed
Modified:
lucene/dev/branches/branch_4x/ (props changed)
lucene/dev/branches/branch_4x/solr/ (props changed)
lucene/dev/branches/branch_4x/solr/core/ (props changed)
lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/cloud/SyncStrategy.java
Modified: lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/cloud/SyncStrategy.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/cloud/SyncStrategy.java?rev=1498761&r1=1498760&r2=1498761&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/cloud/SyncStrategy.java (original)
+++ lucene/dev/branches/branch_4x/solr/core/src/java/org/apache/solr/cloud/SyncStrategy.java Tue Jul 2 02:40:30 2013
@@ -87,6 +87,10 @@ public class SyncStrategy {
if (SKIP_AUTO_RECOVERY) {
return true;
}
+ if (isClosed) {
+ log.warn("Closed, skipping sync up.");
+ return false;
+ }
log.info("Sync replicas to " + ZkCoreNodeProps.getCoreUrl(leaderProps));
// TODO: look at our state usage of sync
// zkController.publish(core, ZkStateReader.SYNC);