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

At least some Solr plugins are instantiated twice

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 4.0-ALPHA
    • None
    • None

    Description

      I ran into this trying to research SOLR-3015. For a QParserPlugin, there seems to be two instances created. The init() method is called for each. The same is true for a SearchComponent. If the SearchComponent is made SolrCoreAware, and a CloseHook is added, the close hook is properly called once per instance, but nevertheless the stated plugin lifecycle as described in the wiki seems to indicate that there should be only ONE instance.

      Note that this is being run inside a test, which is derived from SolrTestCaseJ4, which could conceivably have something to do with it. I haven't confirmed whether or not this occurs on 3.x as well as trunk, but it certainly happens reliably enough on trunk.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kwright@metacarta.com Karl Wright
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: