Skip to content

First resume from golden snapshot always restores FULL scope regardless of onSuspend/onResume settings #1567

Closed as duplicate

Description

@zoez7

After the actor has its own snapshot (ignore upgrades for now), the snapshot that the Actors are restoring from has its scope equal to actorTemplate.onSuspend.Scope (or the onPause equivalent), but the first resume using golden snapshot is an exception.

Because the golden snapshot is always "FULL" scoped, regardless of the value of onSuspend and onResume settings, the first resume using golden snapshot always restores the full snapshot. Is this ok?

This means, for an actor whose template has onSuspend: Data and onResume.fromData: data_only, the first resume still restores the full golden snapshot.

Activity

  1. eliranw commented on Sep 10, 2026

    @eliranw
    Collaborator

    Are you asking this on the API-contract, where the template says Data on suspend/resume but the first golden resume hands back FULL?
    Or is it about what's left in memory, like seeds or secrets from the clone? For the memory side I did a PR to reseed the guest CRNG on restore: #1524.

    Are there use cases for data-only golden snapshots?

  2. zoez7 commented on Oct 13, 2026

    @zoez7
    CollaboratorAuthor

    Will be fixed via #2533

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

    area/apiUser-facing API changesarea/api-machinerykind/designDesign discussion, investigation, or research required before implementation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions