pingqiuandClaude Opus 5.5 d7d1718358 replication, durable: rebase the ship order after a restored host's frontier seed
A ReplicationVolume orders writes from the store's next LSN, captured
when it is built. On a restored walstore-chunk host the frontier seed
moves that LSN to HEAD.remote_lsn+1 later, during the deferred attach.
The resequencer then waited forever for the LSNs below it, and writes
and flushes hung.

Whoever moves the next LSN now tells every component that cached it:
- ReplicationVolume.RebaseShipLSN(lsn) moves the ship order forward. It
  is refused while any write is pending or in flight, never dropping
  one, and never moves backwards; an equal LSN is a no-op.
- The provider calls it through the backend's observer right after
  SeedChunkFrontier, before the layer attaches and the volume serves
  I/O.
- StorageBackend.SetWriteObserver rebases a newly installed observer
  to the store's next LSN, covering a seed that landed before the
  observer was installed (blockvolume installs it after
  SetReplicationVolume, while the attach is still deferred).

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