Return-Path: Delivered-To: apmail-lucene-solr-dev-archive@locus.apache.org Received: (qmail 41482 invoked from network); 2 May 2008 22:04:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 May 2008 22:04:58 -0000 Received: (qmail 32996 invoked by uid 500); 2 May 2008 22:04:59 -0000 Delivered-To: apmail-lucene-solr-dev-archive@lucene.apache.org Received: (qmail 32964 invoked by uid 500); 2 May 2008 22:04:58 -0000 Mailing-List: contact solr-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-dev@lucene.apache.org Received: (qmail 32953 invoked by uid 99); 2 May 2008 22:04:58 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 May 2008 15:04:58 -0700 X-ASF-Spam-Status: No, hits=-1999.8 required=10.0 tests=ALL_TRUSTED,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 May 2008 22:04:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A3CA8234C11C for ; Fri, 2 May 2008 15:00:57 -0700 (PDT) Message-ID: <1951178748.1209765657669.JavaMail.jira@brutus> Date: Fri, 2 May 2008 15:00:57 -0700 (PDT) From: "Yonik Seeley (JIRA)" To: solr-dev@lucene.apache.org Subject: [jira] Updated: (SOLR-509) Event Listeners called before request handlers are informed of SolrCore In-Reply-To: <1525736854.1206228324412.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/SOLR-509?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yonik Seeley updated SOLR-509: ------------------------------ Attachment: SOLR-509-fix.patch Here's the latest version, which restores firstSearcher event handling to getSearcher, and uses a latch to block any searcher warming events until the end of the 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 > Assignee: Grant Ingersoll > Fix For: 1.3 > > Attachments: SOLR-509-fix.patch, SOLR-509-fix.patch, SOLR-509.patch, 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.