pingqiuandClaude Opus 5.5 f4e7ff4be6 fix(storage): a chunk store drains nothing to the extent before its chunk layer attaches
After a crash, Recover replays a synced write into the dirty map; the
flusher drained it to the extent before the chunk layer attached, so the
block was not marked local and the next fetch of its absent chunk
installed the snapshot's block over the acknowledged write.

The durable provider now holds the drain on a walstore-chunk store before
Recover (HoldExtentDrainUntilChunkLayer); every flusher drain, the stop's
included, does nothing while held; the replayed write stays in the WAL
and is served from the dirty map; attach releases the hold, so the first
drain marks it local. A held store takes no BASE. Writers of the extent
are enumerated by a guard test; INV-CHUNK-LOCAL-BEFORE-FETCH-001.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 16:57:52 -08:00
Languages
Go 84.5%
Rust 7.9%
Shell 2.7%
templ 1.6%
Java 1%
Other 2%