mirror of https://github.com/apache/lucene.git
SOLR-5574: CoreContainer shutdown publishes all nodes as down and waits to see that and then again publishes all nodes as down.
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1553157 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
97d3e2d546
commit
be7d4f195f
|
@ -265,6 +265,9 @@ Other Changes
|
||||||
* SOLR-5565: Raise default ZooKeeper session timeout to 30 seconds from 15
|
* SOLR-5565: Raise default ZooKeeper session timeout to 30 seconds from 15
|
||||||
seconds. (Mark Miller)
|
seconds. (Mark Miller)
|
||||||
|
|
||||||
|
* SOLR-5574: CoreContainer shutdown publishes all nodes as down and waits to
|
||||||
|
see that and then again publishes all nodes as down. (Mark Miller)
|
||||||
|
|
||||||
================== 4.6.1 ==================
|
================== 4.6.1 ==================
|
||||||
|
|
||||||
Versions of Major Components
|
Versions of Major Components
|
||||||
|
|
|
@ -357,21 +357,11 @@ public class CoreContainer {
|
||||||
log.info("Shutting down CoreContainer instance="
|
log.info("Shutting down CoreContainer instance="
|
||||||
+ System.identityHashCode(this));
|
+ System.identityHashCode(this));
|
||||||
|
|
||||||
if (isZooKeeperAware()) {
|
|
||||||
try {
|
|
||||||
zkSys.getZkController().publishAndWaitForDownStates();
|
|
||||||
} catch (KeeperException e) {
|
|
||||||
log.error("", e);
|
|
||||||
} catch (InterruptedException e) {
|
|
||||||
Thread.currentThread().interrupt();
|
|
||||||
log.warn("", e);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
isShutDown = true;
|
isShutDown = true;
|
||||||
|
|
||||||
if (isZooKeeperAware()) {
|
if (isZooKeeperAware()) {
|
||||||
zkSys.publishCoresAsDown(solrCores.getCores());
|
|
||||||
cancelCoreRecoveries();
|
cancelCoreRecoveries();
|
||||||
|
zkSys.publishCoresAsDown(solrCores.getCores());
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in New Issue