Apache Solr open-source search software
SOLR-4899: When reconnecting after ZooKeeper expiration, we need to be willing to wait forever, not just for 30 seconds.
Mark Robert Miller5c052874e83c
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 992e1079746..adc2219f84a 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -128,6 +128,9 @@ Bug Fixes* SOLR-4805: SolreCore#reload should not call preRegister and publish a DOWN state toZooKeeper. (Mark Miller, Jared Rodriguez)+* SOLR-4899: When reconnecting after ZooKeeper expiration, we need to be willing to wait+ forever, not just for 30 seconds. (Mark Miller)+Other Changes----------------------diff --git a/solr/solrj/src/java/org/apache/solr/common/cloud/ConnectionManager.java b/solr/solrj/src/java/org/apache/solr/common/cloud/ConnectionManager.javaindex 8e5b0939424..1f8c40b4765 100644--- a/solr/solrj/src/java/org/apache/solr/common/cloud/ConnectionManager.java+++ b/solr/solrj/src/java/org/apache/solr/common/cloud/ConnectionManager.java@@ -95,7 +95,7 @@ class ConnectionManager implements Watcher {// if keeper does not replace oldKeeper we must be sure to close itsynchronized (connectionUpdateLock) {try {- waitForConnected(SolrZkClient.DEFAULT_CLIENT_CONNECT_TIMEOUT);+ waitForConnected(Long.MAX_VALUE);} catch (Exception e1) {closeKeeper(keeper);throw new RuntimeException(e1);