[ 
https://issues.apache.org/jira/browse/SOLR-3015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13183759#comment-13183759
 ] 

Hoss Man commented on SOLR-3015:
--------------------------------

bq. I wonder if this is a bug?

it sounds distinct from this issue, so yes please file a bug.

BTW: the backstory on why there are limitations on what can implement 
SolrCoreAware can all be found in SOLR-414 ... the crux of hte issue is that 
back when there was a SolrCore singleton, it was very easy to get into circular 
init refrence hell of plugins trying to do things with the SolrCore before it 
was fully initialized.  even now with the SolrCoreAware interface being called 
*after* all the plugins have been inited, we still have to watch out for the 
possibility that one type of plugin (like a RequestHandler) might attempt to 
use access another type of plugin (like a QParserPlugin) in it's own 
MyRequestHandler.inform(SolrCore) before the QParserPlugin.inform(SolrCore) 
method has been called.

There needs to be a really strong reason to add things to the SolrCoreAware 
list, because every interface we add is another dimensional increase in the 
risk of problems people might run into.


                
> 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