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

CompressingStoredFieldsReader should close the index file as soon as it has been read

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.3.1
    • 4.4, 6.0
    • None
    • None
    • New

    Description

      Although CompressingStoredFieldsReader loads the stored fields index into memory, it only closes the index file in close(). Closing at the end of the constructor should help save file descriptors.

      The same idea applies to CompressingTermVectorsReader.

      Attachments

        1. LUCENE-5050.patch
          8 kB
          Adrien Grand

        Activity

          People

            jpountz Adrien Grand
            jpountz Adrien Grand
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: