Skip to content

armgit / solr

Public Imported from GitHub
0

Apache Solr open-source search software

SOLR-6402: OverseerCollectionProcessor should not exit for ZooKeeper ConnectionLoss.

Mark Robert Miller8154a8086a78
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index acd77d32c98..bd1ca18589d 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -338,6 +338,9 @@ Bug Fixes
block cache are not removed, which is a problem with the global block cache option.
(Mark Miller, Patrick Hunt)
+* SOLR-6402: OverseerCollectionProcessor should not exit for ZooKeeper ConnectionLoss.
+ (Jessica Cheng via Mark Miller)
+
Optimizations
---------------------
diff --git a/solr/core/src/java/org/apache/solr/cloud/OverseerCollectionProcessor.java b/solr/core/src/java/org/apache/solr/cloud/OverseerCollectionProcessor.java
index c5cb83ddc59..96b1b5d5741 100644
--- a/solr/core/src/java/org/apache/solr/cloud/OverseerCollectionProcessor.java
+++ b/solr/core/src/java/org/apache/solr/cloud/OverseerCollectionProcessor.java
@@ -341,8 +341,7 @@ public class OverseerCollectionProcessor implements Runnable, Closeable {
}
} catch (KeeperException e) {
- if (e.code() == KeeperException.Code.SESSIONEXPIRED
- || e.code() == KeeperException.Code.CONNECTIONLOSS) {
+ if (e.code() == KeeperException.Code.SESSIONEXPIRED) {
log.warn("Overseer cannot talk to ZK");
return;
}