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: [email protected]
For additional commands, e-mail: [email protected]