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

GC resources in TermInfosReader when exception occurs in its constructor

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      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. TermInfosReader.patch
          2 kB
          Ning Li
        2. Readers.patch
          7 kB
          Ning Li

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: