Apache Lucene open-source search software
related to the failures seen here SOLR-6347
Noble Paule096d4ae93e7
diff --git a/solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java b/solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.javaindex 70176662d2c..6010598e7cd 100644--- a/solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java+++ b/solr/solrj/src/java/org/apache/solr/common/cloud/ZkStateReader.java@@ -874,8 +874,14 @@ public class ZkStateReader implements Closeable {public void removeZKWatch(final String coll) {synchronized (this) {watchedCollections.remove(coll);- clusterState = clusterState.copyWith(Collections- .<String,DocCollection> singletonMap(coll, null));+ try {+ updateClusterState(true);+ } catch (KeeperException e) {+ log.error("Error updating state",e);+ } catch (InterruptedException e) {+ log.error("Error updating state",e);+ Thread.currentThread().interrupt();+ }}}