Skip to content

fix(test): enforce durability invariant after fsync#24

Merged
siphonite merged 1 commit intomainfrom
fix/stricter-durability-invariant
Feb 6, 2026
Merged

fix(test): enforce durability invariant after fsync#24
siphonite merged 1 commit intomainfrom
fix/stricter-durability-invariant

Conversation

@siphonite
Copy link
Owner

Summary

Addresses review feedback on #23: enforce stricter durability invariant after fsync.

Changes

Use crash_info.label to differentiate expected states per crash point:

  • Before fsync (after_write_1, after_write_2): any prefix is acceptable
  • After fsync: both records MUST be present (fsync guarantees durability)

This catches durability regressions like missing/ignored fsync calls.

Verification

  • cargo fmt -- --check
  • cargo clippy -- -D warnings
  • cargo test --test canonical_append_log

Use crash_info.label to differentiate expected states:
- Before fsync: any prefix is acceptable
- After fsync: both records MUST be present

Addresses review feedback on #23
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@siphonite siphonite merged commit 3656b95 into main Feb 6, 2026
2 checks passed
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