Skip to content

EventSourced actors failed to clean up its timer on death #7692

@Arkatufus

Description

@Arkatufus

Version Information
Version of Akka.NET? dev
Which Akka.NET Modules? Akka.Persistence

Describe the bug

The timer in question is in this line:

var timeoutCancelable = Context.System.Scheduler.ScheduleTellRepeatedlyCancelable(timeout, timeout, Self, new RecoveryTick(false), Self);

If the actor is forcefully killed while inside this state, it fails to call timeoutCancelable.Cancel() and will cause infinite RecoveryTick messages to be dead-lettered until the actor system is restarted.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions