docs(engine): design temp-vanish fault-injection mechanism (SPL-34)#4784
Merged
Conversation
Sibling of SPL-33.a (ENOSPC). Covers five vanish modes (unlink-while- open, replace-inode, parent-rmdir-mid-write, parent-rmdir-between- writes, fs-unmount) and recommends a layered hybrid: mock filesystem for unit tests (modes a, b), real remove_file/remove_dir_all for integration tests (modes a, c, d), unmount documented as gap (mode e). Maps eight new tests across the 23 audited sites.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
remove_file/remove_dir_all, bind-mount+umount, failpoints, FUSE) against each mode and recommends a layered hybrid:FaultingFile) covering modes (a) and (b).remove_file/remove_dir_allcovering modes (a), (c), (d) - same pattern as SPL-37's dir-wipe regression test.umountnot granted on hosted runners.docs/design/spill-fs-error-audit.md(SPL-32) to SPL-33 vs SPL-34 coverage; eight new tests land.SpillError::TempVanished { path }as a typed variant symmetric toSpillError::PriorSpillsLost(shipped by SPL-35/36/37 in PR feat(engine): SpillError::PriorSpillsLost typed variant + consumer wiring (SPL-35..37) #4749).Design-only document. No production source changes.
Test plan
FaultPlanextension is compatible with SPL-33.a's chassis (one shared type carrying both ENOSPC and temp-vanish parameters).SpillError::TempVanishedproposal does not break the receiver's exit-code mapping (must still surface as exit 11FileIo).