Skip to content

durable: domain effects of a parent Fire an actor spawned by Start or Recover drives are never dispatched #269

Open

Description

@reka18

What happens

A parent transition driven by an actor that Start or Recover spawned can emit domain effects, and durable never dispatches them. This is the same gap as #257, on a path #257 leaves out. These parent Fires sit pending on the Handle (h.pending) and are journaled as before entries of the next step, so they don't belong to the step that spawned the actor.

The open question is timing. Should those effects go out:

  • with the next step's dispatch, ahead of that step's own effects, which matches replay's order of before entries first; or
  • at the moment the spawning Start or Recover returns, which would need a step of their own to journal them in?

TestRecover_ASpawnsFireArmsATimerAtItsRead exercises this path for timers.

Relates to: #257

Activity

  1. reka18 commented on Nov 24, 2026

    @reka18
    ContributorAuthor

    When this is fixed, pin it. Today nothing fails if Recover starts dispatching the effects of a Fire driven by an actor that Start or Recover spawned (the before entries at durable/runner.go:2404–2410): folding them into the step's effects passes the whole suite. The fix should land with a test that the effects dispatch exactly once, live and on Recover, with stable ids. Found in #270's review.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions