Apache Solr open-source search software
SOLR-16450: Proper handling on watcher registration failure in ZkStateReader#waitForState (#1058)
Ishan Chattopadhyaya7998c973c7cc
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex bebd1c73ffc..8e380d67b44 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -280,6 +280,8 @@ Other Changes* SOLR-16423: Upgrade Apache Hadoop to 3.3.4 (Kevin Risden)+* SOLR-16450: Proper handling on watcher registration failure in ZkStateReader#waitForState() (Hitesh Khamesra via Ishan Chattopadhyaya)+Build---------------------* SOLR-16204: Change Lucene dependency to Lucene 9.1.0 (Elia Porciani via Alessandro Benedetti)diff --git a/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/ZkStateReader.java b/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/ZkStateReader.javaindex 2d0165ae96b..c87ba1c5f69 100644--- a/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/ZkStateReader.java+++ b/solr/solrj-zookeeper/src/java/org/apache/solr/common/cloud/ZkStateReader.java@@ -1966,9 +1966,9 @@ public class ZkStateReader implements SolrCloseable {return matches;};- registerDocCollectionWatcher(collection, watcher);try {+ registerDocCollectionWatcher(collection, watcher);// wait for the watcher predicate to return true, or time outif (!latch.await(wait, unit))throw new TimeoutException(