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

excess SolrEventListeners created and then thrown away

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4, 1.4.1
    • 3.1, 4.0-ALPHA
    • None
    • None

    Description

      As noted by Jørgen Trosby on the solr mailing list (subj: "SolrEventListeners are instantiated twice", "Mon, 11 Oct 2010 18:11:07 +0200") there is a problem with how SolrEventListeners are being created and initialized

      the bug is two fold:

      • the UpdatedHandler and the SolrCore both independently loop over all SolrEventListeners looking for the two classes of use cases they directly care about (postCommit/postOptimize vs newSearcher/firstSearcher) – in both cases they construct every declared listener even if it is not a type they care about
      • even when UpdatedHandler is finding a postCommit it cared about, it throws it away and constructing it again.

      Attachments

        1. SOLR-2285.patch
          9 kB
          Chris M. Hostetter

        Activity

          People

            hossman Chris M. Hostetter
            hossman Chris M. Hostetter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: