[ 
https://issues.apache.org/jira/browse/SOLR-5629?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Shalin Shekhar Mangar resolved SOLR-5629.
-----------------------------------------

       Resolution: Fixed
    Fix Version/s: 4.7
                   5.0

This was a trivial fix so I went ahead and committed it. I hope you don't mind 
Erick.

Thanks Shikhar!

> 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
>             Fix For: 5.0, 4.7
>
>
> 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-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to