Skip to content

Conversation

@patriknw
Copy link
Contributor

  • in case of failure restarts the state instance must be recreated if the state is mutable
  • no changes in javadsl, but emptyState method is called also for restarts, inside Behavior.setup
  • added factory methods for mutable state in scaladsl, but with Scala it should be more natural to use immutable state

* in case of failure restarts the state instance must be recreated
  if the state is mutable
* no changes in javadsl, but emptyState method is called also for
  restarts, inside Behavior.setup
* added factory methods for mutable state in scaladsl, but with Scala it should
  be more natural to use immutable state
@patriknw patriknw added the bug label Oct 24, 2025
@patriknw patriknw added this to the 2.10.10 milestone Oct 24, 2025
@patriknw
Copy link
Contributor Author

We might have the same in DurableState, I'll take a look at that too.

Copy link
Contributor

@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 6b93537 into main Oct 27, 2025
9 checks passed
@johanandren johanandren deleted the wip-mutable-empty-patriknw branch October 27, 2025 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants