SOLR-6641: SystemInfoHandler should include the zkHost the node is using (when running in solrcloud mode)

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1633621 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy Potter 2014-10-22 14:07:38 +00:00
parent 62bf86a2e1
commit 6d6ed37027
2 changed files with 6 additions and 0 deletions

View File

@ -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 Fixes

View File

@ -92,6 +92,9 @@ public class SystemInfoHandler extends RequestHandlerBase
if (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() );