Skip to content

ActorTemplateReconciler orphans golden actors in ateapi on reconciliation retries #525

Description

@troychiu

Expected Behavior

Golden actor creation should be idempotent and deterministic per ActorTemplate resource lifecycle so retries recover safely without leaving orphaned actors in ateapi.

Actual Behavior

In ActorTemplateReconciler.Reconcile (PhaseInitial), golden actor IDs are generated non-deterministically using uuid.NewString().
If CreateActor succeeds but the subsequent Kubernetes status update fails, Reconcile returns an error. On retry, at.Status.Phase is still PhaseInitial. The reconciler generates a new random UUID and calls CreateActor again, leaving the actor created in the prior attempt orphaned in ateapi.

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