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

HandleTrackingFs leaks files if #onClose throws an exception

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.1
    • 5.2, 5.3, 6.0
    • modules/test-framework
    • None
    • New, Patch Available

    Description

      if #onClose throws an exception for instance due to an error in #onOpen we leak the filehandle since we don't call super.close(). I ran into this in Elasticsearch tests where files are concurrently deleted and we got a WindowsFS -> LeakFS -> UnixFs. The UnixFS opened the file but by the time WindowsFS tried to read the files metadata it was already deleted causing onOpen to barf and we leaked the file.

      Attachments

        1. LUCENE-6488.patch
          8 kB
          Simon Willnauer
        2. LUCENE-6488.patch
          8 kB
          Simon Willnauer

        Activity

          People

            simonw Simon Willnauer
            simonw Simon Willnauer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: