pingqiuandClaude Opus 5.5 97f460d181 durable: Detach drains admitted I/O and stays stopped; minLSN refused first
- StorageBackend gains an I/O admission boundary: Read, Write and Sync
  hold the read side of ioMu for the whole operation, gate included, and
  check the closed and operational flags once before the lock so I/O
  arriving during a drain fails at once. StopIO refuses new I/O and waits,
  bounded by ctx, for the I/O admitted before the stop.
- DetachVolume latches the volume as detached for this process (under the
  attach lock), stops and drains frontend I/O before the periodic loop
  and the final cut, so no write is acknowledged outside the detached
  image; a drain that times out fails the detach with I/O still stopped.
  RecoverVolume and the deferred authority attach no longer reopen a
  latched volume (ErrChunkLayerDetached); a retry settles the detach and a
  repeated call returns the first result.
- CutVolume takes minLSN: an LSN never written is refused before anything
  is published (MakeRemoteDurable's refusal), and the cut must reach it.

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