pingqiuandClaude Opus 5.5 45efc13cf6 storage: enforce the sticky fault where callers commit, not only at entry
A Sync queued behind a failing fsync, and writers waiting for the store
lock behind a failing append, passed the entry check before the fault was
latched. The latch is now checked where they commit:
- syncWALBatch, before its dedup return and before any fsync, so a batch
  queued behind a failed fsync neither fsyncs again nor reports success;
- Sync, under the store lock before it publishes a frontier (covering a
  deduplicated Sync and a fault latched by a flusher fsync);
- Write, WriteBatch (including the multi-block path) and ApplyEntry,
  under the append lock before allocating LSNs or touching the WAL;
- persistCheckpoint, under the store lock.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-16 12:23:11 -08:00
Languages
Go 84.7%
Rust 7.7%
Shell 2.7%
templ 1.5%
Java 1%
Other 2.1%