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

DirectoryTaxonomyReader.refresh misbehaves with ref counts

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.6, 4.0-ALPHA
    • modules/facet
    • None
    • New, Patch Available

    Description

      DirectoryTaxonomyReader uses the internal IndexReader in order to track its own reference counting. However, when you call refresh(), it reopens the internal IndexReader, and from that point, all previous reference counting gets lost (since the new IndexReader's refCount is 1).

      The solution is to track reference counting in DTR itself. I wrote a simple unit test which exposes the bug (will be attached with the patch shortly).

      Attachments

        1. LUCENE-3703.patch
          5 kB
          Shai Erera
        2. LUCENE-3703.patch
          5 kB
          Shai Erera

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: