Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-509

Event Listeners called before request handlers are informed of SolrCore

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.3
    • Component/s: search
    • Labels:
      None

      Description

      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.

        Attachments

        1. SOLR-509.patch
          3 kB
          Grant Ingersoll
        2. SOLR-509.patch
          2 kB
          Koji Sekiguchi
        3. SOLR-509-fix.patch
          4 kB
          Yonik Seeley
        4. SOLR-509-fix.patch
          2 kB
          Yonik Seeley

          Activity

            People

            • Assignee:
              yseeley@gmail.com Yonik Seeley
              Reporter:
              hossman Hoss Man
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: