SOLR-4981: Don't try and sync after SyncStrategy is closed

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1498760 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2013-07-02 02:39:37 +00:00
parent 65d565b188
commit 1829c3a811
1 changed files with 4 additions and 0 deletions

View File

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