pingqiuandClaude Opus 5.5 2e96506299 transport: the epoch table's invalid mark is owned by the newest recovery's random token
Two overlapping recoveries: A synced its data and paused, B started and
imported newer bytes (the table already invalid), then A's replace made the
table valid over B's data. Invalidate now draws a fresh random token,
persists it as the mark's owner and returns it; a later recovery takes the
mark over. A recovery completes only under its own token, checked and
written under one lock; any other completion is refused and not acked, and
a dead recovery's token is never presented again, so after a reload the
table stays invalid until a new recovery completes. Dual-lane sessions hold
the mark under a sentinel no completion presents. A promotion over an
invalid table clears the owner. The block design gains the epoch table's
state diagram.

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