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
A client restoring a recorded checkpoint can't ask ResumeActor to restore exactly that checkpoint. It can GetActor, compare actor UID and snapshot UUID/generation, then call ResumeActor — but another caller can resume and suspend in between, so resume picks a different checkpoint. Delete/recreate under the same name can also target a different actor. For a RUNNING actor, ResumeActor returns resumed: false and restores nothing.
Proposal: ExpectedSnapshot expected = 2; on ResumeActorRequest, with actor_uid, snapshot_uuid and generation. It's a condition on the current restore source, not a way to pick an older checkpoint:
Checked under the actor lifecycle lease, before the RUNNING no-op or any restore work.
Requires that checkpoint to be the latest, completed and durable, with the actor SUSPENDED (or retryable RESUMING). A newer pending checkpoint is rejected, never resolved to an older completed one.
FAILED_PRECONDITION on mismatch or wrong state; UNAVAILABLE when the matching upload isn't complete yet.
Without expected, behaviour is unchanged, including the router's RUNNING no-op.
Fidelity is left to #2818; this only covers which checkpoint gets restored. Related: #1773 and #2551 (general revision guards).
Activity