mirror of https://github.com/apache/lucene.git
SOLR-14878: Expose solr.xml's coreRootDirectory property via the System Settings API (#1894)
This commit is contained in:
parent
ab3f1f0d1d
commit
f6e8bc8c31
|
@ -48,6 +48,8 @@ Improvements
|
||||||
|
|
||||||
* SOLR-14799: JWT authentication plugin only requires "sub" claim when principalClaim=sub. (Erik Hatcher)
|
* SOLR-14799: JWT authentication plugin only requires "sub" claim when principalClaim=sub. (Erik Hatcher)
|
||||||
|
|
||||||
|
* SOLR-14878: Report solr.xml's coreRootDirectory property via System Settings API, when set (Alexandre Rafalovitch)
|
||||||
|
|
||||||
Other Changes
|
Other Changes
|
||||||
----------------------
|
----------------------
|
||||||
* SOLR-14656: Autoscaling framework removed (Ishan Chattopadhyaya, noble, Ilan Ginzburg)
|
* SOLR-14656: Autoscaling framework removed (Ishan Chattopadhyaya, noble, Ilan Ginzburg)
|
||||||
|
|
|
@ -23,6 +23,7 @@ import java.lang.management.ManagementFactory;
|
||||||
import java.lang.management.OperatingSystemMXBean;
|
import java.lang.management.OperatingSystemMXBean;
|
||||||
import java.lang.management.RuntimeMXBean;
|
import java.lang.management.RuntimeMXBean;
|
||||||
import java.net.InetAddress;
|
import java.net.InetAddress;
|
||||||
|
import java.nio.file.Path;
|
||||||
import java.text.DecimalFormat;
|
import java.text.DecimalFormat;
|
||||||
import java.text.DecimalFormatSymbols;
|
import java.text.DecimalFormatSymbols;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
@ -139,8 +140,19 @@ public class SystemInfoHandler extends RequestHandlerBase
|
||||||
if (solrCloudMode) {
|
if (solrCloudMode) {
|
||||||
rsp.add("zkHost", getCoreContainer(req, core).getZkController().getZkServerAddress());
|
rsp.add("zkHost", getCoreContainer(req, core).getZkController().getZkServerAddress());
|
||||||
}
|
}
|
||||||
if (cc != null)
|
if (cc != null) {
|
||||||
rsp.add( "solr_home", cc.getSolrHome());
|
String solrHome = cc.getSolrHome();
|
||||||
|
rsp.add("solr_home", solrHome);
|
||||||
|
|
||||||
|
Path coreRootDirectory = cc.getCoreRootDirectory();
|
||||||
|
if (coreRootDirectory != null) {
|
||||||
|
String coreRootDirectoryString = coreRootDirectory.toString();
|
||||||
|
if (!coreRootDirectoryString.equals(solrHome)) {
|
||||||
|
rsp.add("solr_core_root", coreRootDirectoryString);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
rsp.add( "lucene", getLuceneInfo() );
|
rsp.add( "lucene", getLuceneInfo() );
|
||||||
rsp.add( "jvm", getJvmInfo() );
|
rsp.add( "jvm", getJvmInfo() );
|
||||||
rsp.add( "security", getSecurityInfo(req) );
|
rsp.add( "security", getSecurityInfo(req) );
|
||||||
|
|
Loading…
Reference in New Issue