pingqiuandClaude Opus 5.5 70457de5fd durable: walstore-chunk attaches under master authority, within the caller deadline
The chunk layer attached right after local recovery. In blockvolume that
is while the host still blocks the master's assignment, so the layer was
bound to epoch and endpoint version 0. After the assignment replayed, the
host became healthy but every cut was refused against that 0/0 lineage.

The layer now attaches only when the projection names the volume, is
healthy and carries a master-assigned epoch. RecoverVolume attaches at
once when that holds. Otherwise it reports the volume recovered, keeps
its I/O refused, and starts one authority wait per volume. The wait is
registered with Close like a recovery; it attaches when the assignment
is applied, then makes the volume operational, and retries a failed
attempt. Capture operations report ErrChunkAwaitingAuthority meanwhile.
The lineage that later cuts are checked against is the one at that
attach.

The attach's remote calls now also end with RecoverVolume's caller
context, besides provider Close. The attached layer is not bound to that
context: later captures keep working after it ends.

New control: Close settles an in-flight deferred attach.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-15 02:50:09 -08:00
Languages
Go 84.6%
Rust 7.8%
Shell 2.7%
templ 1.6%
Java 1%
Other 2%