Repository navigation
feat(sim): add 19 enterprise DST & chaos scenarios (replication, WORM, ILM, pools, OIDC, audit, tiering, S3 Tables, quota, migration) - #8
Merged
Conversation
…t-scenarios # Conflicts: # crates/rustfs-dst-sim/tests/dst_suite.rs
2 tasks
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
Expands
rustfs/DSTfrom 7 core scenarios to 26 total deterministic simulation scenarios (7 core + 19 enterprise domains), built cleanly on top of the tightenedSimDiskIodurability and quorum guarantees from #5/#6.Added Enterprise Scenarios (19 Domains)
site-replication(src/replication.rs) — 3-site active-active IAM, policy, bucket, and object replication under partitions, asymmetric cuts, +/-30s clock skew, site crash/reboot, and origin-echo loop checks.bucket-replication(src/replication.rs) — Cross-cluster async version & delete-marker replication under target outage, flaky links, out-of-order delayed packets (gen=1arriving aftergen=2), prefix filters, andREPLICAloop guards.worm-object-lock(src/governance.rs) — S3 Object Lock (COMPLIANCE,GOVERNANCE,LegalHold) verified against hostile +/-365d NTP step attacks, admin bypass attempts, retention shortening, and power loss during retention extension.lifecycle-transition(src/governance.rs) — Virtual-clock cold-tier transitions racing with clientPutObjectoverwrites (CAS generation fence), tier outages, and mid-transition crashes before stubfsync.lifecycle-expiration(src/governance.rs) — Current, noncurrent, orphan delete-marker, and incomplete multipart expiration interacting with hostile clock skew and WORM locks.lifecycle-tag-expiration(src/governance.rs) —Prefix + TagAND-rules racing with concurrentPutObjectTagging(TOCTOU generation re-validation cancels stale delete).pool-expansion(src/pools.rs) — Live multi-pool expansion (Pool 0->Pool 0+1+2) during node restarts with zero-downtime reads and exact cross-poolListObjectsV2union.pool-decommission(src/pools.rs) — Write-admission fence (Decommissioningrejects new PUTs) and full version drain across faults.pool-rebalance(src/pools.rs) — Skewed multi-pool utilization rebalancing under live linearizable reads with zero missing or duplicate keys.decommission-consistency-safety(src/pools.rs) — Adversarial overwrite & delete race barriers, WORM retention & Legal Hold metadata preservation, and crash between destination commit and source cleanup.rebalance-consistency-safety(src/pools.rs) — Source-shard silent bitrot RS-reconstruction before cross-pool move, generation fences, and destination-durable-before-source-cleanup ordering.oidc-sts-auth(src/security_obs.rs) — Rotating JWKS (kid-1->kid-2), JWKS cache survival during transient IdP outage, clock-skewedexp/nbf, subject revocation, and 100% fail-closed rejection of forged/expired/wrong-audience tokens.bucket-notification(src/security_obs.rs) — Multi-target fan-out (Webhook + Kafka) with prefix/suffix filters, crash-durable spill queue replay, and non-blocking S3 data-path isolation.audit-logging(src/security_obs.rs) — Cryptographic hash-chained audit WAL surviving power loss with zero missing records and strict credential/token redaction.tiering-management(src/governance.rs) — Multi-tier registry (S3/GCS/Azure), credential rotation, health flapping, and in-use tier deletion guard (TierInUse).tiered-remote-restore(src/governance.rs) —RestoreObjectbit-exactness, tier outage retry, anti-rollback protection (rustfs/backlog#3074never bumpsmod_time), and virtual-clock hot-cache TTL eviction keeping cold stubs intact.s3-tables(src/enterprise_data.rs) — Table Buckets, Namespaces, non-empty namespace protection, and concurrent IcebergUpdateTableMetadataLocationversionTokenCAS serializability across crashes.capacity-quota(src/enterprise_data.rs) — DistributedHARD&FIFOquotas coveringPUT,CopyObject(rustfs/rustfs#7947), multipart reserve/abort zero-leak accounting, and WORM-safe FIFO eviction.on-demand-migration(src/enterprise_data.rs) — Lazy pull-through migration from legacy S3/MinIO with strict local overwrite and delete-tombstone shadowing (zero resurrection).CLI Enhancements
Added scenario group presets to
rustfs-dst run --scenario:all,core,enterprise,replication,governance,pools,security,data.Related Issues
Closes #7
Verification
cargo fmt --all -- --check: passedcargo clippy --workspace --all-targets -- -D warnings: passed (0 warnings)cargo test --workspace: 31/31 tests passed (includingidentical_seeds_produce_identical_passing_reportsacross all 26 scenarios)rustfs-dst verify-determinism --topology 4x4 --seed 2026: 26/26 scenarios bit-identicalrustfs-dst run --scenario all --seeds 20on4x4and3x2: 1,040/1,040 runs passed with 0 invariant violations