You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shikhar Bhushan (JIRA)" <ji...@apache.org> on 2014/01/14 14:41:51 UTC
[jira] [Created] (SOLR-5629) SolrIndexSearcher.name should include
core name
Shikhar Bhushan created SOLR-5629:
-------------------------------------
Summary: SolrIndexSearcher.name should include core name
Key: SOLR-5629
URL: https://issues.apache.org/jira/browse/SOLR-5629
Project: Solr
Issue Type: Improvement
Reporter: Shikhar Bhushan
Priority: Minor
The name attribute on {{SolrIndexSearcher}} is used in log lines, but does not include the core name.
So in a multi-core setup it is unnecessarily difficult to trace what core's searcher is being referred to, e.g. in log lines that provide info on searcher opens & closes.
One-line patch that helps:
Replace
{noformat}
this.name = "Searcher@" + Integer.toHexString(hashCode()) + (name!=null ? " "+name : "");
{noformat}
with
{noformat}
this.name = "Searcher@" + Integer.toHexString(hashCode()) + "[" + core.getName() + "]" + (name!=null ? " "+name : "");
{noformat}
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org