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

GC resources in TermInfosReader when exception occurs in its constructor

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.3
    • core/index
    • None
    • Patch Available

    Description

      I replaced IndexModifier with IndexWriter in test case TestStressIndexing and noticed the test failed from time to time because some .tis file is still open when MockRAMDirectory.close() is called. It turns out it is because .tis file is not closed if an exception occurs in TermInfosReader's constructor.

      Attachments

        1. Readers.patch
          7 kB
          Ning Li
        2. TermInfosReader.patch
          2 kB
          Ning Li

        Activity

          People

            mikemccand Michael McCandless
            ningli Ning Li
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: