Repository navigation
feat(sim): add 7 issue-driven Scanner DST chaos scenarios (33 total scenarios) - #10
Merged
Merged
Conversation
…DiskIo ENOSPC byte accounting
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.
Closes #9
Summary
Auditing 100+ real scanner, heal, bitrot, MRF, delete-recovery, lifecycle, replication, and data-movement issues in
rustfs/rustfs(andrustfs/backlog) revealed thatcrates/scanneris the central convergence hub where production faults cascade across usage census, bitrot/heal dispatch, MRF queues, delete recovery, ILM/replication/tier sweeps, and pool pause-backlog fencing.This PR expands
rustfs/DSTfrom 26 to 33 deterministic simulation scenarios (7 core + 19 enterprise + 7 scanner chaos, selectable via--scenario scanner) and adds 46 new Antithesis/CodeProbe assertions:rustfs/rustfsIssues Coveredscanner-checkpoint-failover#7108,#8494,#7964,#8461,#8457,#8618,#8141,#8297,#8888,#9462,backlog#3118,backlog#3282scanner-usage-census-durability#9520,#9471,#9664,#9672,#8305,#8478,#9543,#8670,#6907,#6951,#6958,#8106,#8924,backlog#3350scanner-mrf-heal-starvation#9629,#9370,#8192,#5950,#7951,#7997,#8590,#8608,#9671,#9669,#9554,#9154,backlog#2577scanner-deep-bitrot-heal#5821,#5837,#8005,#8007,#5863,#8015,#8377,#8764,backlog#2905scanner-delete-recovery-and-enospc#9517,#9560,#8464,#8666,#9673,#9594,#9461,#9647,#9015,backlog#3286scanner-ilm-repl-tier-coupling#8620,#8454,#8768,#9354,#9670,#8834,#8758,#9434,#8321,#7959,#8362,backlog#2606scanner-pacing-memory-and-pool-fence#8456,#8961,#8121,#8477,#9469,#9488,#7967,#8667,#7968,#9196,#8564,backlog#2932,backlog#3296,backlog#2147Real Simulator Bug Caught & Fixed by This Suite
SimDiskIo::total_volatile_bytes()ENOSPCspace-reclamation bug:scanner-delete-recovery-and-enospc(rustfs#9461) immediately caught thatSimDiskIo::total_volatile_bytes()summed all inodes in the table instead of only volatile-reachable files, preventingremove_file/remove_dir_allfrom freeing capacity underDiskFaultConfig::capacity_bytes. Fixed by walking volatile-reachable inodes while preserving un-fsynced crash durability.SimDiskIo::inject_tail_truncate(rustfs#8005),SimDiskIo::used_bytes, and explicitReadShardResp::CorruptMetaclassification inSimECStore(rustfs#5837).Verification
cargo fmt --all -- --check— passcargo clippy --workspace --all-targets -- -D warnings— pass (0 warnings)cargo test --workspace— 32/32 tests pass across4x4,3x2, and4x2rustfs-dst verify-determinism(4x4&3x2) — 33/33 bit-exact replay passrustfs-dst run --scenario scanner --seeds 25(4x4&3x2) — 350/350 runs pass, 46/46 CodeProbe properties green