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

ASF subversion and git services commented on SOLR-5629:
-------------------------------------------------------

Commit 1565140 from [email protected] in branch 'dev/branches/branch_4x'
[ https://svn.apache.org/r1565140 ]

SOLR-5629: SolrIndexSearcher.name should include core name

> 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
>            Assignee: Erick Erickson
>            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]

Reply via email to