You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "David Smiley (Jira)" <ji...@apache.org> on 2021/03/10 06:05:00 UTC

[jira] [Commented] (SOLR-15198) Slf4j logs threadName incorrectly in some cases

    [ https://issues.apache.org/jira/browse/SOLR-15198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17298544#comment-17298544 ] 

David Smiley commented on SOLR-15198:
-------------------------------------

I think these thread names with MDC is deliberate.  See org.apache.solr.common.util.ExecutorUtil.MDCAwareThreadPoolExecutor#execute

> Slf4j logs threadName incorrectly in some cases
> -----------------------------------------------
>
>                 Key: SOLR-15198
>                 URL: https://issues.apache.org/jira/browse/SOLR-15198
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: logging
>    Affects Versions: 8.6
>            Reporter: Megan Carey
>            Priority: Minor
>
> I'm running Solr 8.6, and I'm seeing some logs report threadName with the entire log message and MDC. I haven't dug in too much, but CoreContainer logs seem to be the biggest culprit. Not sure if it's an issue of thread naming (including delimiter in name?), SolrLogFormat parsing, or something else altogether.
> ```
> { [
>    CoreAdminHandler.action: CREATE
>    CoreAdminHandler.asyncId: rebalance_replicas_trigger/41b16883a3bcTdzc5xqm9leudgekft79dpj5zl/372246269149506
>    collection: collectionName
>    core: collectionName_shard1_0_0_0_1_0_0_0_1_1_0_1_0_0_replica_s7606
>    level: INFO
>    logger: org.apache.solr.core.CoreContainer
>    message: Creating SolrCore 'collectionName_shard1_0_0_0_1_0_0_0_1_1_0_1_0_0_replica_s7606' using configuration from configset crm, trusted=true
>    node_name: REDACTED_HOSTNAME:8983_solr
>    replica: core_node7607
>    shard: shard1_0_0_0_1_0_0_0_1_1_0_1_0_0
>    threadId: 4861
>    *threadName: parallelCoreAdminExecutor-19-thread-6-processing-n:REDACTED_HOSTNAME:8983_solr x:collectionName_shard1_0_0_0_1_0_0_0_1_1_0_1_0_0_replica_s7606 t:Shared-932ac44c-06a4-44d3-ba8f-5a64c8f8d708 rebalance_replicas_trigger//41b16883a3bcTdzc5xqm9leudgekft79dpj5zl//372246269149506 CREATE*
>    timestamp: 2021-02-03T16:26:56.482Z
>    trace_id: Shared-932ac44c-06a4-44d3-ba8f-5a64c8f8d708
> }
> ```



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org