Apache Lucene open-source search software
SOLR-6641: SystemInfoHandler should include the zkHost the node is using (when running in solrcloud mode)
Timothy Potter6d6ed37027d2
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txtindex 5ba6cbeb807..32ce2c63997 100644--- a/solr/CHANGES.txt+++ b/solr/CHANGES.txt@@ -343,6 +343,9 @@ Other Changes* SOLR-6592: Avoid waiting for the leader to see the down state if that leader is not live.(Timothy Potter)+* SOLR-6641: SystemInfoHandler should include the zkHost the node is using (when running in solrcloud mode)+ (Timothy Potter)+================== 4.10.1 ==================Bug Fixesdiff --git a/solr/core/src/java/org/apache/solr/handler/admin/SystemInfoHandler.java b/solr/core/src/java/org/apache/solr/handler/admin/SystemInfoHandler.javaindex c716a8023ca..3c97f9005ca 100644--- a/solr/core/src/java/org/apache/solr/handler/admin/SystemInfoHandler.java+++ b/solr/core/src/java/org/apache/solr/handler/admin/SystemInfoHandler.java@@ -92,6 +92,9 @@ public class SystemInfoHandler extends RequestHandlerBaseif (core != null) rsp.add( "core", getCoreInfo( core, req.getSchema() ) );boolean solrCloudMode = getCoreContainer(req, core).isZooKeeperAware();rsp.add( "mode", solrCloudMode ? "solrcloud" : "std");+ if (solrCloudMode) {+ rsp.add("zkHost", getCoreContainer(req, core).getZkController().getZkServerAddress());+ }rsp.add( "lucene", getLuceneInfo() );rsp.add( "jvm", getJvmInfo() );rsp.add( "system", getSystemInfo() );