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

Leaking FileChannel in NIOFSDirectory#openInput

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 9.0, 8.7
    • 9.0, 8.7
    • core/store
    • None
    • New

    Description

      If we fail to get the size of a file in the constructor of NIOFSIndexInput, then we will leak a FileChannel opened in NIOFSDirectory#openInput. This bug is discovered by a test failure in Elasticsearch.

      Attachments

        Issue Links

          Activity

            People

              dnhatn Nhat Nguyen
              dnhatn Nhat Nguyen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h