pingqiuandClaude Opus 5.5 c67eec48a1 transport: legacy catch-up and rebuild send the post-close durable ack
Since the engine holds PublishHealthy until a durable ack observed after
the recovery window closes, only the dual-lane rebuild close sent that
ack. The legacy path (finishSession: every StartCatchUp, and StartRebuild
without dual-lane; cmd/blockvolume defaults to --recovery-mode=legacy)
sent only the session close, so a recovered replica stayed recovering.

finishSession now sends, after a successful close, the same
DurableAckResult the dual-lane close sends: DurableLSN is the replica's
barrier-acknowledged achieved LSN, with the primary's tail and head. The
ack follows the close callback, and both run without e.mu held. A failed
close sends no ack.

Fixes core/calibration C2/C3/C4/AllScenarios and cmd/sparrow
AllThreePaths/Repeatable. Refs #94

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