mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-12-05 18:47:20 +01:00
7483d9634ecaa3873c0f53d09cc8c749d42df4ad
A fence mints its own session from the peer's one session order; once the replica acknowledges it, the replica holds the fence's lineage, above the peer's earlier live session, and refuses every later barrier or ship on that live session as stale. A rejoining replica already at the primary's end (no recovery session, so no post-recovery refresh) was never healed. The fence-complete callback now calls the same RefreshLiveShipSessionAfter the recovery close uses, after the fence's barrier was acknowledged and before the engine publishes healthy. The replica's stale-refusal log lines now name their cause (a primary listener, an epoch below the floor, no role yet, below the held lineage, or the same lineage with another frontier hint). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Languages
Go
84.7%
Rust
7.7%
Shell
2.7%
templ
1.5%
Java
1%
Other
2.1%