Skip to content

fix: complete DS_UNSAFE_FAST_FSYNC rename; drop concluded contention-investigation doc#4690

Open
balegas wants to merge 3 commits into
mainfrom
fix/unsafe-fast-fsync-segment
Open

fix: complete DS_UNSAFE_FAST_FSYNC rename; drop concluded contention-investigation doc#4690
balegas wants to merge 3 commits into
mainfrom
fix/unsafe-fast-fsync-segment

Conversation

@balegas

@balegas balegas commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

Two follow-ups to #4675:

1. Complete the DS_BENCH_FAST_FSYNCDS_UNSAFE_FAST_FSYNC rename. The rename in #4675 missed src/wal/segment.rs, which has its own copy of fast_fsync_enabled() — and that one gates the WAL group-commit fsync, i.e. the fsync that actually determines append-ack latency. As merged, the documented DS_UNSAFE_FAST_FSYNC name only affected the store/checkpoint fsyncs, so setting it would not speed up WAL-mode acks as the README describes. Includes a changeset.

2. Remove the WAL contention investigation tracking doc. The investigation is concluded (fixes landed in #4675); drops CONTENTION_INVESTIGATION.md and its dangling cross-reference in CARDINALITY_1M.md.

Verification

Re-ran the bench-latency harness on macOS against this branch: with DS_UNSAFE_FAST_FSYNC=1, WAL write acks drop from ~3.2 ms (F_FULLFSYNC) to ~0.3 ms, matching the documented behavior. grep -rn DS_BENCH_FAST_FSYNC over the repo is clean, as is CONTENTION_INVESTIGATION.

🤖 Generated with Claude Code

https://claude.ai/code/session_0196ak7AuMa8we6DXbzv4zUE

balegas and others added 3 commits July 6, 2026 17:06
The rename in #4675 missed segment.rs's copy of fast_fsync_enabled() —
the fsync that actually gates WAL append acks — so the documented
DS_UNSAFE_FAST_FSYNC name only affected store/checkpoint fsyncs.
Verified with the bench-latency harness: WAL acks now drop ~3.2ms -> ~0.3ms
under the new name on macOS.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Investigation is concluded (fixes landed in #4675); drop the tracking
doc and its dangling cross-reference in CARDINALITY_1M.md.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@balegas balegas changed the title fix: complete DS_UNSAFE_FAST_FSYNC rename in wal/segment.rs fix: complete DS_UNSAFE_FAST_FSYNC rename; drop concluded contention-investigation doc Jul 6, 2026
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.

2 participants