Repository navigation
Detect CRASHED Actors during Checkpoint and Restore - #353
Merged
Merged
Conversation
Zoe Zhao (zoez7)
force-pushed
the
crashed
branch
8 times, most recently
from
June 30, 2026 00:01
2dcac0b to
11ae3bf
Compare
CRASHED state to ActorCRASHED Actors during Checkpoint and Restore
Zoe Zhao (zoez7)
marked this pull request as ready for review
June 30, 2026 00:04
| }) | ||
| if err != nil { | ||
| return nil, fmt.Errorf("while calling ateom.CheckpointWorkload: %w", err) | ||
| return nil, ateerrors.NewGRPCError(codes.DataLoss, ateerrors.ErrReasonCrashActor, err) |
Collaborator
There was a problem hiding this comment.
is it always supposed to be crashActor?
Dmitry Berkovich (dberkov)
requested changes
Jun 30, 2026
Dmitry Berkovich (dberkov)
left a comment
Collaborator
There was a problem hiding this comment.
- minor comments.
- could you please update microvm ateom to support same behavior as for gvisor.
- E2E is failing, i scheduled retry and it still fails. Could you please run e2e on your local environment.
… cannot find Worker assignment.
Zoe Zhao (zoez7)
force-pushed
the
crashed
branch
from
June 30, 2026 22:17
fdfb203 to
1183ed3
Compare
… terminal errors in atelet with local sentinels
# Conflicts: # cmd/atelet/main.go
…elet + apiserver)
createWorkerPod/deleteWorkerPod polled ListWorkers, which reads the store directly, but AssignWorker reads the in-memory worker cache that is updated asynchronously via pubsub. On slow CI runners the gap between the two caused flaky 'no free workers available' failures in TestResumeActor. Poll the worker cache as well before returning from the helpers.
ClusterClient.ForEachMaster invokes its callback concurrently, one goroutine per master. getSortedMasters appended to the shared slice without a mutex, so an append could be lost and ListActors would then silently skip every actor on the dropped shard. This surfaced as the TestActorLifecycle/CreateActor e2e flake: a just-created actor missing from an immediate ListActors response. Guard the append with a mutex, matching ListWorkers/ListAtespaces, and add a regression test that fakes concurrent ForEachMaster callbacks (miniredis is single-node so the existing tests never exercise this).
Dmitry Berkovich (dberkov)
approved these changes
Jul 8, 2026
Dmitry Berkovich (dberkov)
merged commit Jul 8, 2026
069ba08
into
agent-substrate:main
11 checks passed
This was referenced Jul 8, 2026
Zoe Zhao (zoez7)
pushed a commit
that referenced
this pull request
Jul 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related to #292 and #119
Changes:
ResumeActorwe'll put the actor in CRASHED state if the Resume failed due to any errors related to the snapshot itself, which includes:SuspendActororPauseActorwe'll put the actor in CRASHED state if we cannot produce a valid snapshot, which includes: