-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: swallowed exceptions in timed out WithCircuitBreaker()
#7362
base: dev
Are you sure you want to change the base?
Fix: swallowed exceptions in timed out WithCircuitBreaker()
#7362
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Self-review for unit test
// Issue https://github.com/akkadotnet/akka.net/issues/7358 | ||
// The actual exception is thrown out-of-band with no handler because inner Task is detached | ||
// after a timeout and NOT protected | ||
|
||
// In the bug, the task is still running when it should've been stopped. | ||
innerFuture.IsCompleted.Should().BeTrue(); | ||
innerFuture.IsFaulted.Should().BeTrue(); | ||
innerFuture.Exception.Should().BeOfType<TestException>(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The actual test, the inner Task should have stopped when the circuit breaker timed out, but it is still running as a detached Task.
# Conflicts: # src/core/Akka.Persistence/Snapshot/SnapshotStore.cs
Fixes #7358
Changes