IntersectMBO / IntersectMBO/ouroboros-consensus
Immutable DB: simulate failed file handle closes
- Dominant language
- Haskell
- Stars
- 67
- Forks
- 43
- Avg merge
- 5d 13h
- Merged PRs (30d)
- 43
Description
What does it mean to fail to close a file handle? Will it remain open, can it still be used, should we try to close it again?
It might be that closing the handle forces a flush of the last write(s), which causes the failure.
Read the manual (OS docs, Posix manual, Win32 manual, etc).
We can easily simulate this using the `Error` `HasFS`.
Contributor guide
Research direction
Start by reading the relevant OS, POSIX, and Win32 manuals about failed file-handle closes, including whether the handle remains open, can be reused, or should be closed again. Then inspect the `Error` `HasFS` implementation to determine how close failures can be simulated. Done means the expected close behavior is established and the simulation covers the failure, including any flush-related error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- operating-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100