Skip to content

Validate DST object visibility and seed campaigns - #6

Merged
loverustfs merged 2 commits into
cursor/dst-audit-fixes-f760from
audit/dst-correctness
Nov 28, 2026
Merged

loverustfs merged 2 commits into
cursor/dst-audit-fixes-f760from
audit/dst-correctness

Conversation

@loverustfs

@loverustfs loverustfs commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Follow-up to #5. Strengthen the DST oracle and campaign runner against false passes found while comparing the simulator with RustFS 17808b9fe5509d1029c6c9c1f792cc2e7e34e747 and the S3 general-purpose bucket contract.

  • Check GET responses against the exact generation, version ID, and payload checksum of an acknowledged or indeterminate mutation. Keep an observed deletion in the visibility history so a subsequent read cannot resurrect an older value. S3 data consistency model
  • Check modeled LIST results for missing, duplicate, or unexpected keys and incorrect versions and checksums. Run the visibility check before healing can conceal an inconsistent state.
  • Stage multipart replacements per upload attempt. A below-quorum retry preserves the previously acknowledged part for both identical and changed payloads. Completion selects the acknowledged part identity. S3 UploadPart RustFS multipart implementation
  • Reject empty or overflowing seed ranges, retain the scenario and seed when a run panics, compare complete replay reports, and upload nightly campaign reports. Each scheduled run advances to a new seed window.

The simulator exercises its behavioral model. Production runtime trait adoption is tracked in #3.

Verification

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace with 31 passing tests
  • actionlint
  • Release determinism replay across 4x4, 3x2, and 4x2 at seed 2026
  • Release campaign of 500 seeds per scenario on each of the three topologies, totaling 10,500 scenario runs

@loverustfs
loverustfs merged commit c8af4e1 into cursor/dst-audit-fixes-f760 Nov 28, 2026
1 check passed
loverustfs added a commit that referenced this pull request Nov 28, 2026
* Fix DST durability, quorum, and turmoil false confidence

The simulated disk treated fsync_file as publishing directory entries and
fsync_dir as flushing dirty file bytes, so crash tests could pass without
the barriers RustFS actually needs. Delete markers were visible at read
quorum, the turmoil TCP scenario ignored topology and could publish a
failed write, and a few reproducibility hooks were wrong.

Align those checks with current RustFS quorum rules and add regressions.

Co-authored-by: RustFS <hello@rustfs.com>

* Validate DST object visibility and seed campaigns (#6)

* Validate DST object visibility and seed campaigns

* Keep acknowledged multipart parts across failed retries

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
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.

1 participant