Solr
  1. Solr
  2. SOLR-3027

At least some Solr plugins are instantiated twice

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0-ALPHA
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      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.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Karl Wright
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development