You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Rollcall keeps stale presence after a peer restarts with a lower incarnation #2634
When a Rollcall peer restarts with the same node name and a lower VM-relative incarnation, a receiver rejects its snapshots as stale. Each rejected snapshot still resets the old replica’s silence counter. If new snapshots keep arriving, the receiver keeps the old presence and never sees the new presence.
To reproduce
Reproduced on main at a247966 with a Rollcall tracker test and simulated peer messages. No database is required.
Start a receiver with a silence threshold of three ticks.
Deliver a snapshot from one tracker containing an old presence entry with stamp {2, 1}.
For three ticks, deliver a snapshot from a different tracker on the same node containing a new entry with stamp {1, 1}. Deliver the new snapshot once more after the third tick.
Read the partition via Rollcall.state/3. It still returns old.
Expected behavior
A snapshot the receiver rejects should not keep another tracker’s replica alive. The old replica should expire and the next snapshot should restore presence for that peer.
Verification scope
The reproduction exercises Rollcall’s snapshot handling and public state read with simulated peer messages. It does not restart a live cluster.
Activity