WindowsFS should simulate "pending delete" state for a file too [LUCENE-6771]
- Dominant language
- Java
- Stars
- 3.6k
- Forks
- 1.4k
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 88
Description
NTFS has a state for a file called "pending delete", where a delete was tried ("succeeded", if the files was opened with shared access), but if there were still open file handles on that file, the file is in "pending delete" state where it is listed in the directory but cannot be written, read nor deleted.
@uschindler suggested WindowsFS should try to emulate this too, and I agree: it would maybe have made it easier to repro some recent Windows-only test failures.
See the comment on #7742 for more details...
---
Migrated from [LUCENE-6771](https://issues.apache.org/jira/browse/LUCENE-6771) by Michael McCandless (@mikemccand)
Contributor guide
Research direction
Start by locating the WindowsFS implementation and reading the details linked from issue #7742. Understand how an open file behaves after a successful delete with remaining handles, then verify that a file remains listed but cannot be read, written, or deleted while pending deletion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100