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

Hoss Man updated SOLR-3015:
---------------------------

    Description: 
QParserPlugin cannot be made SolrCoreAware:

{code}
    [junit] org.apache.solr.common.SolrException: Invalid 'Aware' object: 
org.apache.solr.mcf.ManifoldCFQParserPlugin@18941f7 -- 
org.apache.solr.util.plugin.SolrCoreAware must be an instance of: 
[org.apache.solr.request.SolrRequestHandler]
[org.apache.solr.response.QueryResponseWriter] 
[org.apache.solr.handler.component.SearchComponent] 
[org.apache.solr.update.processor.UpdateRequestProcessorFactory] 
[org.apache.solr.handler.component.ShardHandlerFactory]
{code}




  was:
For some kinds of plugins, the CloseHook API works well to allow the plugin to 
clean up any resources it was using prior to Solr shutdown.  But for 
QParserPlugins, CloseHook does not work; you get an error if you try to use it. 
 This occurs because the QParserPlugin cannot be made SolrCoreAware:

{code}
    [junit] org.apache.solr.common.SolrException: Invalid 'Aware' object: 
org.apache.solr.mcf.ManifoldCFQParserPlugin@18941f7 -- 
org.apache.solr.util.plugin.SolrCoreAware must be an instance of: 
[org.apache.solr.request.SolrRequestHandler]
[org.apache.solr.response.QueryResponseWriter] 
[org.apache.solr.handler.component.SearchComponent] 
[org.apache.solr.update.processor.UpdateRequestProcessorFactory] 
[org.apache.solr.handler.component.ShardHandlerFactory]
{code}




     Issue Type: New Feature  (was: Bug)
        Summary: QParserPlugins can not be SolrCoreAware  (was: CloseHook 
cannot be used with QParserPlugins)

Karl: as i noted in the initial mailing list thread prior to this issue (which 
you did not seem to reply to) the concepts of "CloseHook" and "SolrCoreAware" 
are completely orthogonal -- they have nothing to do with one another, and the 
fact that QParserPlugins can not currently be made SolrCoreAware does not mean 
that they can not use CloseHook...

https://mail-archives.apache.org/mod_mbox/lucene-dev/201201.mbox/%3Calpine.DEB.2.00.1201030949590.10095@bester%3E

I've updated issue summary & description to remove the refs to CloseHook, since 
the crux of the issue (based on your patch and stack trace) seems to be 
entirely about whether QParserPlugins should be allowed to be SolrCoreAware.
                
> QParserPlugins can not be SolrCoreAware
> ---------------------------------------
>
>                 Key: SOLR-3015
>                 URL: https://issues.apache.org/jira/browse/SOLR-3015
>             Project: Solr
>          Issue Type: New Feature
>            Reporter: Karl Wright
>              Labels: closehook, qparserplugin, solrcoreaware
>         Attachments: SOLR-3015.patch
>
>
> QParserPlugin cannot be made SolrCoreAware:
> {code}
>     [junit] org.apache.solr.common.SolrException: Invalid 'Aware' object: 
> org.apache.solr.mcf.ManifoldCFQParserPlugin@18941f7 -- 
> org.apache.solr.util.plugin.SolrCoreAware must be an instance of: 
> [org.apache.solr.request.SolrRequestHandler]
> [org.apache.solr.response.QueryResponseWriter] 
> [org.apache.solr.handler.component.SearchComponent] 
> [org.apache.solr.update.processor.UpdateRequestProcessorFactory] 
> [org.apache.solr.handler.component.ShardHandlerFactory]
> {code}

--
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to