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

WindowsFS misses to remove open file handle if file is concurrently deleted

Details

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

    Description

      WindowsFs has some race conditions when files are concurrently opened and deleted. A file might be successfully opened while concurrently deleted which should be prevented by the WindowsFS with an IOException / access denied. The problem is that we try to remove the leaked file handle form the internal map on close which fails since we fail to read the key from the filesystem since it has already been deleted. This manifests in subsequent `access denied` exceptions even though all streams on the file are closed.

      Attachments

        1. LUCENE-6499.patch
          6 kB
          Simon Willnauer
        2. LUCENE-6499.patch
          6 kB
          Simon Willnauer

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: