Skip to content

feat(sim): add 7 issue-driven Scanner DST chaos scenarios (33 total scenarios) - #10

Merged
loverustfs merged 1 commit into
mainfrom
feat/scanner-dst-chaos-suite
Nov 28, 2026
Merged

loverustfs merged 1 commit into
mainfrom
feat/scanner-dst-chaos-suite

Conversation

@loverustfs

Copy link
Copy Markdown
Contributor

Closes #9

Summary

Auditing 100+ real scanner, heal, bitrot, MRF, delete-recovery, lifecycle, replication, and data-movement issues in rustfs/rustfs (and rustfs/backlog) revealed that crates/scanner is 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/DST from 26 to 33 deterministic simulation scenarios (7 core + 19 enterprise + 7 scanner chaos, selectable via --scenario scanner) and adds 46 new Antithesis/CodeProbe assertions:

# Scenario Slug Upstream rustfs/rustfs Issues Covered
S1 scanner-checkpoint-failover #7108, #8494, #7964, #8461, #8457, #8618, #8141, #8297, #8888, #9462, backlog#3118, backlog#3282
S2 scanner-usage-census-durability #9520, #9471, #9664, #9672, #8305, #8478, #9543, #8670, #6907, #6951, #6958, #8106, #8924, backlog#3350
S3 scanner-mrf-heal-starvation #9629, #9370, #8192, #5950, #7951, #7997, #8590, #8608, #9671, #9669, #9554, #9154, backlog#2577
S4 scanner-deep-bitrot-heal #5821, #5837, #8005, #8007, #5863, #8015, #8377, #8764, backlog#2905
S5 scanner-delete-recovery-and-enospc #9517, #9560, #8464, #8666, #9673, #9594, #9461, #9647, #9015, backlog#3286
S6 scanner-ilm-repl-tier-coupling #8620, #8454, #8768, #9354, #9670, #8834, #8758, #9434, #8321, #7959, #8362, backlog#2606
S7 scanner-pacing-memory-and-pool-fence #8456, #8961, #8121, #8477, #9469, #9488, #7967, #8667, #7968, #9196, #8564, backlog#2932, backlog#3296, backlog#2147

Real Simulator Bug Caught & Fixed by This Suite

  • SimDiskIo::total_volatile_bytes() ENOSPC space-reclamation bug: scanner-delete-recovery-and-enospc (rustfs#9461) immediately caught that SimDiskIo::total_volatile_bytes() summed all inodes in the table instead of only volatile-reachable files, preventing remove_file / remove_dir_all from freeing capacity under DiskFaultConfig::capacity_bytes. Fixed by walking volatile-reachable inodes while preserving un-fsynced crash durability.
  • Added SimDiskIo::inject_tail_truncate (rustfs#8005), SimDiskIo::used_bytes, and explicit ReadShardResp::CorruptMeta classification in SimECStore (rustfs#5837).

Verification

  • cargo fmt --all -- --check — pass
  • cargo clippy --workspace --all-targets -- -D warnings — pass (0 warnings)
  • cargo test --workspace — 32/32 tests pass across 4x4, 3x2, and 4x2
  • rustfs-dst verify-determinism (4x4 & 3x2) — 33/33 bit-exact replay pass
  • rustfs-dst run --scenario scanner --seeds 25 (4x4 & 3x2) — 350/350 runs pass, 46/46 CodeProbe properties green

@loverustfs
loverustfs merged commit b35bd54 into main Nov 28, 2026
1 check passed
@loverustfs
loverustfs deleted the feat/scanner-dst-chaos-suite branch November 28, 2026 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(sim): add issue-driven Scanner DST chaos suite covering bitrot, MRF heal, usage census, ILM, replication, delete recovery, and pool fencing

1 participant