You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ro...@apache.org on 2016/09/16 12:33:39 UTC

lucene-solr:master: SOLR-9507: Correctly set MDC values for CoreContainer threads

Repository: lucene-solr
Updated Branches:
  refs/heads/master 84e01eb84 -> 5610fd9df


SOLR-9507: Correctly set MDC values for CoreContainer threads


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/5610fd9d
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/5610fd9d
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/5610fd9d

Branch: refs/heads/master
Commit: 5610fd9df2a5d118b628e8a24bc2bd1db2d79d20
Parents: 84e01eb
Author: Alan Woodward <ro...@apache.org>
Authored: Fri Sep 16 13:33:07 2016 +0100
Committer: Alan Woodward <ro...@apache.org>
Committed: Fri Sep 16 13:33:07 2016 +0100

----------------------------------------------------------------------
 solr/CHANGES.txt                                           | 3 +++
 solr/core/src/java/org/apache/solr/core/CoreContainer.java | 2 ++
 2 files changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/5610fd9d/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 333cfb1..d8df854 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -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
 ----------------------
 

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/5610fd9d/solr/core/src/java/org/apache/solr/core/CoreContainer.java
----------------------------------------------------------------------
diff --git a/solr/core/src/java/org/apache/solr/core/CoreContainer.java b/solr/core/src/java/org/apache/solr/core/CoreContainer.java
index 0b996b8..0ccf2de 100644
--- a/solr/core/src/java/org/apache/solr/core/CoreContainer.java
+++ b/solr/core/src/java/org/apache/solr/core/CoreContainer.java
@@ -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"));