Skip to content

Apache Lucene open-source search software

SOLR-5574: CoreContainer shutdown publishes all nodes as down and waits to see that and then again publishes all nodes as down.

Mark Robert Millerbe7d4f195f48
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index e9e34bd49ab..f52d17f6020 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -265,6 +265,9 @@ Other Changes
* SOLR-5565: Raise default ZooKeeper session timeout to 30 seconds from 15
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 ==================
Versions of Major Components
diff --git a/solr/core/src/java/org/apache/solr/core/CoreContainer.java b/solr/core/src/java/org/apache/solr/core/CoreContainer.java
index 82bb4fec617..d4748510e7a 100644
--- a/solr/core/src/java/org/apache/solr/core/CoreContainer.java
+++ b/solr/core/src/java/org/apache/solr/core/CoreContainer.java
@@ -357,21 +357,11 @@ public class CoreContainer {
log.info("Shutting down CoreContainer instance="
+ 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;
-
+
if (isZooKeeperAware()) {
- zkSys.publishCoresAsDown(solrCores.getCores());
cancelCoreRecoveries();
+ zkSys.publishCoresAsDown(solrCores.getCores());
}
try {