You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "tom liu (Created) (JIRA)" <ji...@apache.org> on 2011/12/02 07:39:40 UTC
[jira] [Created] (SOLR-2936) Error Logs of core.SolrCore's finalize
Error Logs of core.SolrCore's finalize
--------------------------------------
Key: SOLR-2936
URL: https://issues.apache.org/jira/browse/SOLR-2936
Project: Solr
Issue Type: Bug
Affects Versions: 4.0
Environment: JDK1.6/CentOS
Reporter: tom liu
the Error log is :
ERROR: core.SolrCore (SolrCore.java:finalize(797)) - REFCOUNT ERROR: unreferenced org.apache.solr.core.SolrCore@2f59f0d1 (seo0#seo0) has a reference count of 1
i think in EmbeddedSolrServer's request method, Line 127:
// Extract the handler from the path or params
SolrRequestHandler handler = core.getRequestHandler( path );
if( handler == null ) {
if( "/select".equals( path ) || "/select/".equalsIgnoreCase( path) ) {
String qt = params.get( CommonParams.QT );
handler = core.getRequestHandler( qt );
if( handler == null ) {
throw new SolrException( SolrException.ErrorCode.BAD_REQUEST, "unknown handler: "+qt);
}
}
when handler is null, and before throw SolrException, that must close the core:
// Extract the handler from the path or params
SolrRequestHandler handler = core.getRequestHandler( path );
if( handler == null ) {
if( "/select".equals( path ) || "/select/".equalsIgnoreCase( path) ) {
String qt = params.get( CommonParams.QT );
handler = core.getRequestHandler( qt );
if( handler == null ) {
core.close();
throw new SolrException( SolrException.ErrorCode.BAD_REQUEST, "unknown handler: "+qt);
}
}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org