mirror of https://github.com/apache/lucene.git
SOLR-9507: Correctly set MDC values for CoreContainer threads
This commit is contained in:
parent
84e01eb84b
commit
5610fd9df2
|
@ -129,6 +129,9 @@ Bug Fixes
|
|||
* SOLR-9484: The modify collection API should wait for the modified properties to show up in the
|
||||
cluster state. (Cao Manh Dat, shalin)
|
||||
|
||||
* SOLR-9507: CoreContainer threads now correctly set their MDC logging values
|
||||
(Alan Woodward)
|
||||
|
||||
Optimizations
|
||||
----------------------
|
||||
|
||||
|
|
|
@ -459,6 +459,8 @@ public class CoreContainer {
|
|||
zkSys.initZooKeeper(this, solrHome, cfg.getCloudConfig());
|
||||
if(isZooKeeperAware()) pkiAuthenticationPlugin = new PKIAuthenticationPlugin(this, zkSys.getZkController().getNodeName());
|
||||
|
||||
MDCLoggingContext.setNode(this);
|
||||
|
||||
ZkStateReader.ConfigData securityConfig = isZooKeeperAware() ? getZkController().getZkStateReader().getSecurityProps(false) : new ZkStateReader.ConfigData(EMPTY_MAP, -1);
|
||||
initializeAuthorizationPlugin((Map<String, Object>) securityConfig.data.get("authorization"));
|
||||
initializeAuthenticationPlugin((Map<String, Object>) securityConfig.data.get("authentication"));
|
||||
|
|
Loading…
Reference in New Issue