SOLR-14751: Zookeeper Admin screen not working for old ZK versions
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 4974dea..249c058 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -10,7 +10,7 @@
Bug Fixes
---------------------
-(No changes)
+* SOLR-14751: Zookeeper Admin screen not working for old ZK versions (janhoy)
================== 8.6.1 ==================
diff --git a/solr/solrj/src/java/org/apache/solr/common/cloud/SolrZkClient.java b/solr/solrj/src/java/org/apache/solr/common/cloud/SolrZkClient.java
index 897ae26..9b1101e 100644
--- a/solr/solrj/src/java/org/apache/solr/common/cloud/SolrZkClient.java
+++ b/solr/solrj/src/java/org/apache/solr/common/cloud/SolrZkClient.java
@@ -773,6 +773,9 @@
return "";
}
return new String(data, StandardCharsets.UTF_8);
+ } catch (NoNodeException nne) {
+ log.debug("Zookeeper does not have the /zookeeper/config znode, assuming old ZK version");
+ return "";
} catch (KeeperException|InterruptedException ex) {
throw new SolrException(SolrException.ErrorCode.SERVER_ERROR, "Failed to get config from zookeeper", ex);
}