Skip to content

Akka Persistence Throwing Unobserved Task Exception #7358

@stedmanm

Description

@stedmanm

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

Describe the bug
Bug appears to be in method CallThrough of class AtomicState. If WaitAsync(Timeout timeout) completes before the task implemented by SnapshotStore/Journal, and the task in question throws an exception, then this exception will become unobserved.

To Reproduce

  1. Snapshot loading takes longer than call timeout specified by Akka framework, and Snapshot call throws an exception.

Expected behavior
Would expect Akka framework to observe exception thrown by SnapshotStore/Journal.

Actual behavior
Causes unobserved task exception and crashes our service.

Screenshots
image

Environment
Windows Service and .NET 7

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions