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

Shalin Shekhar Mangar edited comment on SOLR-6673 at 3/25/15 3:38 AM:
----------------------------------------------------------------------

Thanks a lot Ishan and Noble for taking this up. This was very much needed for 
debugging SolrCloud tests.

There are some additional logging that can be handled here. For example, simple 
queries and updates don't log anything other than core name currently. The 
SolrDispatchFilter has the core object so it should have all the information 
(via CloudDescriptor) to log collection, shard, coreNodeName etc.

I'm re-opening this issue to handle the other stuff instead of creating a new 
issue to change un-released functionality.


was (Author: shalinmangar):
Thanks a lot Ishan and Noble for taking this up. This was very much needed for 
debugging SolrCloud tests.

There are some additional logging that can be handled here. For example, simple 
queries and updates don't log anything other than core name currently. Since 
the SolrDispatchFilter has the core then it has all the information (via 
CloudDescriptor) to log collection, shard, coreNodeName etc.

I'm re-opening this issue to handle the other stuff instead of creating a new 
issue to change un-released functionality.

> 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
>            Assignee: Noble Paul
>              Labels: logging
>             Fix For: Trunk, 5.1
>
>         Attachments: SOLR-6673.patch, SOLR-6673.patch, SOLR-6673.patch, 
> SOLR-6673.patch, SOLR-6673.patch, SOLR-6673.patch, SOLR-6673.patch, 
> SOLR-6673.patch, log4j.properties, 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