Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-3485

LuceneTaxonomyReader .decRef() may close the inner IR, renderring the LTR in a limbo.

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.4
    • 3.5, 4.0-ALPHA
    • modules/facet
    • None
    • New, Patch Available

    Description

      TaxonomyReader which supports ref-counting, has a decRef() method which delegates to an inner IndexReader and calls its .decRef(). The latter may close the reader (if the ref is zeroes) but the taxonomy would remain 'open' which will fail many of its method calls.

      Also, the LTR's .close() method does not work in the same manner as IndexReader's - which calls decRef(), and leaves the real closing logic to the decRef(). I believe this should be the right approach for the fix.

      Attachments

        1. LUCENE-3485.patch
          12 kB
          Gilad Barkai
        2. LUCENE-3485.patch
          8 kB
          Gilad Barkai

        Activity

          People

            shaie Shai Erera
            giladbarkai Gilad Barkai
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: