You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/02/06 11:02:09 UTC
[jira] [Commented] (SOLR-5629) SolrIndexSearcher.name should
include core name
[ https://issues.apache.org/jira/browse/SOLR-5629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13893224#comment-13893224 ]
ASF subversion and git services commented on SOLR-5629:
-------------------------------------------------------
Commit 1565138 from shalin@apache.org in branch 'dev/trunk'
[ https://svn.apache.org/r1565138 ]
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org