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
area/apiUser-facing API changesarea/nodekind/featureAn enhancement / feature request or implementationprio/P0Highest priority / required for next milestone
Atelet's Run/Checkpoint/Restore methods need to be idempotent to make sure we can recover from workflows that fail half-way through. I believe this is not true today.
This task is to go over atelet (and ateom) and ensure operations can be retried.
I'm seeing that idempotency for Run, Checkpoint, and Restore is not guaranteed, especially if a gRPC Unavailable (atelet --> ateom connection interrupted, e.g. an atelet restart) or DeadlineExceeded (10min deadline) is returned in the middle of these operations. In these cases, the caller has no information about whether the initial operation never started, partially ran, or completed without a response. I have a small repro for Checkpoint below:
/dev/kvm not available: micro-VM support disabled (gVisor still works).
Creating cluster "issue-372" ...
Set kubectl context to "kind-issue-372"
daemon set "atelet" successfully rolled out
deployment "counter" successfully rolled out
actortemplate.ate.dev/counter condition met
Create and resume a counter actor
kubectl ate create atespace demo
kubectl ate create actor repro-main \
-a demo \
--template ate-demo-counter/counter
kubectl ate resume actor repro-main -a demo
kubectl ate get actor repro-main -a demo
Observed:
ATESPACE NAME TEMPLATE STATUS ATEOM POD ATEOM IP VERSION
demo repro-main ate-demo-counter/counter STATUS_RUNNING ate-demo-counter/counter-7c877c5cfd-qt9ml 10.244.0.30 3
Save the worker location before suspending:
kubectl ate get actor repro-main -a demo -o json \
> /private/tmp/repro-main-running.json
export WORKER_NS="$( jq -r '.actors[0].ateomPodNamespace' \ /private/tmp/repro-main-running.json)"export WORKER_POD="$( jq -r '.actors[0].ateomPodName' \ /private/tmp/repro-main-running.json)"echo"$WORKER_NS/$WORKER_POD"
Observed:
ate-demo-counter/counter-7c877c5cfd-qt9ml
Complete the first Checkpoint
kubectl ate suspend actor repro-main -a demo
Observed:
ATESPACE NAME TEMPLATE STATUS
demo repro-main ate-demo-counter/counter STATUS_SUSPENDED
Ateom logged a successful destructive checkpoint:
Actor checkpointing
About to run runsc fscheckpoint
Actor checkpointed
Its RPC result contained the snapshot:
/ateom.Ateom/CheckpointWorkload
resp.snapshot_files=[
fscheckpoint.json
multitar.img
pages.img
pages_meta.img
]
err=null
Atelet also returned success:
/atelet.AteomHerder/Checkpoint
resp={}
err=null
Reconstruct the same Checkpoint request
Get the suspended actor and template:
kubectl ate get actor repro-main -a demo -o json \
> /private/tmp/repro-main-suspended.json
kubectl get actortemplate counter \
-n ate-demo-counter \
-o json \
> /private/tmp/counter-template.json
The first Checkpoint succeeded and tore down the runtime and replaying the same semantic request caused ateom to execute runsc fscheckpoint again against the already-removed container state. A real lost response produces the same server-side situation: ateom completed, but the caller cannot know that and retries. The retry fails because neither atelet nor ateom records a durable result that can be replayed.
area/apiUser-facing API changesarea/nodekind/featureAn enhancement / feature request or implementationprio/P0Highest priority / required for next milestone
Activity
mjlshen commentedon Jul 24, 2026
I'm seeing that idempotency for
Run,Checkpoint, andRestoreis not guaranteed, especially if a gRPCUnavailable(atelet --> ateom connection interrupted, e.g. an atelet restart) orDeadlineExceeded(10min deadline) is returned in the middle of these operations. In these cases, the caller has no information about whether the initial operation never started, partially ran, or completed without a response. I have a small repro forCheckpointbelow:Checkpoint-specific reproduction
Relevant output:
Observed:
Save the worker location before suspending:
Observed:
kubectl ate suspend actor repro-main -a demoObserved:
Ateom logged a successful destructive checkpoint:
Its RPC result contained the snapshot:
Get the suspended actor and template:
Generate the atelet protobuf JSON request:
Check its identity fields:
Observed during the experiment:
{ "targetAteomUid": "40b649d9-72e2-4e92-9e36-db4d3a4ab95c", "actorUid": "9a2fa872-a205-4faa-b719-f9d5c13f4205", "externalConfig": { "snapshotUriPrefix": "gs://ate-snapshots/ate-demo-counter/repro-main/2026-07-24T16:51:32Z-4GE3TODKVSWMRHQG7EGMMKOLH4" }, "scope": "SNAPSHOT_SCOPE_DATA" }In a second terminal:
In the first terminal:
Observed:
Ateom confirms that the replay attempted the destructive runtime operation again:
The final ateom RPC log was:
Summary
The first Checkpoint succeeded and tore down the runtime and replaying the same semantic request caused ateom to execute runsc fscheckpoint again against the already-removed container state. A real lost response produces the same server-side situation: ateom completed, but the caller cannot know that and retries. The retry fails because neither atelet nor ateom records a durable result that can be replayed.
troychiu commentedon Jul 31, 2026
I can help with this Zoe Zhao (@zoez7) . Thank you
ategcs: recognize every S3 "not there" as object absence (#1135)
juli4n commentedon Oct 27, 2026
Closing as there is nothing else actionable here. If we find issues during bug bash we can file separate issues.