You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-dev@lucene.apache.org by "Koji Sekiguchi (JIRA)" <ji...@apache.org> on 2008/04/13 06:55:04 UTC

[jira] Updated: (SOLR-509) Event Listeners called before request handlers are informed of SolrCore

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

Koji Sekiguchi updated SOLR-509:
--------------------------------

    Attachment: SOLR-509.patch

How about this?

1. move firsrSearcher processing block from getSearcher() to a newly created private method
2. call the new private method at the end of SolrCore constructor

> Event Listeners called before request handlers are informed of SolrCore
> -----------------------------------------------------------------------
>
>                 Key: SOLR-509
>                 URL: https://issues.apache.org/jira/browse/SOLR-509
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>            Reporter: Hoss Man
>             Fix For: 1.3
>
>         Attachments: SOLR-509.patch
>
>
> http://www.nabble.com/Nullpointer-when-using-QuerySenderListener-to16201207.html
> Thijs noticed NullPointerException from SearchHandler on startup when trying to configure some firstSearcher events using QuerySenderListener.
> The problem is the events are getting triggered as soon as the firstSearcher is opened, but the SOlrCore isn't finished being initialized, so inform(SolrCore) hasn't been called on all the Handlers (and some handlers aren't fully initialized and ready to process requests yet.
> We need to more the firstSearcher event handling after inform has been called on all SolrCoreAware objects.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.