Skip to content

durable: an actor's done data and errors replay differently from the live run #256

Done

Description

@reka18

What happens

#235 makes service results replay exactly as live ran them: results go through WithEventDataDecoder with a type check, and error messages are normalized. An actor's done data and errors still take the older path. Live, the parent's onDone Assign gets the actor's Go value and the raw Error() text. Replay json.Unmarshals the recorded data into any, with no decoder.

Effects

  • An actor that finishes with Output = Order{...} or int64(5): live the parent's Assign sees Order, and after Recover it sees map[string]any (or float64), so the rebuilt context differs from the live one.
  • An actor error whose Error() holds invalid UTF-8 replays with U+FFFD.
  • An actor error whose Error() panics (a typed nil) panics in actorEntry.

Possible fix

Move the record-and-replay treatment #235 gives service outcomes (replayableOutcome, normalizedErrorMessage) into the shared recording of event data, so actor settles go through it too. The decoder would be keyed by the parent's onDone event, the same as for services.

Relates to: #235, #214

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