Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 45C0217B56 for ; Wed, 25 Mar 2015 03:38:01 +0000 (UTC) Received: (qmail 63027 invoked by uid 500); 25 Mar 2015 03:37:54 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 62959 invoked by uid 500); 25 Mar 2015 03:37:53 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 62939 invoked by uid 99); 25 Mar 2015 03:37:53 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Mar 2015 03:37:53 +0000 Date: Wed, 25 Mar 2015 03:37:53 +0000 (UTC) From: "Shalin Shekhar Mangar (JIRA)" To: dev@lucene.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Reopened] (SOLR-6673) MDC based logging of collection, shard etc. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-6673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shalin Shekhar Mangar reopened SOLR-6673: ----------------------------------------- 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: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org