mirror of https://github.com/apache/lucene.git
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:
parent
65d565b188
commit
1829c3a811
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue