Lucene - Core
  1. Lucene - Core
  2. LUCENE-3485

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4
    • Fix Version/s: 3.5, 4.0-ALPHA
    • Component/s: modules/facet
    • Labels:
      None
    • Lucene Fields:
      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.

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

        Activity

          People

          • Assignee:
            Shai Erera
            Reporter:
            Gilad Barkai
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development