[ 
https://issues.apache.org/jira/browse/SOLR-6673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ishan Chattopadhyaya updated SOLR-6673:
---------------------------------------
    Attachment: SOLR-6673.patch

@Erik, Thanks for your review.
Added MDC.clear() everywhere before starting out. Although, this might be a bit 
conservative, but seemed safer. In many places, only a collection name is 
stamped to MDC, but a stale shard name stamped to the MDC, remnants of some 
previous stamping in the same thread, should be cleared.

Also, added collection, shard stamping to the constructor of the 
ShardLeaderElectionContextBase.

> MDC based logging of collection, shard etc.
> -------------------------------------------
>
>                 Key: SOLR-6673
>                 URL: https://issues.apache.org/jira/browse/SOLR-6673
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Ishan Chattopadhyaya
>              Labels: logging
>         Attachments: MDC.patch, SOLR-6673.patch, log4j.properties
>
>
> In cloud mode, the many log items don't contain the collection name, shard 
> name, core name etc. Debugging becomes specially difficult when many 
> collections/shards are hosted on the same node.
> The proposed solution adds MDC based stamping of collection, shard, core to 
> the thread. 
> See also: SOLR-5969, SOLR-5277



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to