Skip to content
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: deserialization failure in durable state should result in failed future #849

Merged
merged 2 commits into from
Aug 28, 2024

Conversation

leviramsey
Copy link
Contributor

The present implementation of the durable state store treats a deserialization failure as "successful but absent" (a Future containing None)

In contrast:

With this change, the behavior now matches the others: a failed try from the serializer will be a failed future.

Copy link
Member

@johanandren johanandren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@johanandren johanandren merged commit 42a0b6c into akka:main Aug 28, 2024
10 checks passed
@johanandren johanandren added this to the 5.4.2 milestone Aug 28, 2024
@leviramsey leviramsey deleted the state-serialization-fails branch August 28, 2024 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants