I created a ticket for this: SOLR-3015. I hope there's a simple solution and I can just close it, but if not I will experiment and try to produce a patch.
Karl ________________________________________ From: Wright Karl (Nokia-LC/Boston) Sent: Monday, January 02, 2012 11:02 AM To: [email protected] Subject: RE: Solr plugin component resource cleanup? This works fine for a SearchComponent, but if I try this for a QParserPlugin I get the following: [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] Any further suggestions? Karl ________________________________________ From: ext Chris Hostetter [[email protected]] Sent: Tuesday, December 27, 2011 7:19 PM To: [email protected] Subject: Re: Solr plugin component resource cleanup? take a look at the "CloseHook" API and SolrCore.addCloseHook(...) : Is there a preferred time/manner for a Solr component (e.g. a : SearchComponent) to clean up resources that have been allocated during : the time of its existence, other than via a finalizer? There seems to : be nothing for this in the NamedListInitializedPlugin interface, and yet : if you allocate a resource the test framework warns you about it. -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
