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