Skip to content

Rollcall keeps stale presence after a peer restarts with a lower incarnation #2634

Open

Description

@hsusul

Describe the bug

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.

  1. Start a receiver with a silence threshold of three ticks.
  2. Deliver a snapshot from one tracker containing an old presence entry with stamp {2, 1}.
  3. 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.
  4. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions