-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
1 - triagedTickets that are safe to pick up for contributing in terms of likeliness of being acceptedTickets that are safe to pick up for contributing in terms of likeliness of being acceptedbugt:persistencet:typed
Milestone
Description
Calling EventSourcedBehavior.lastSequenceNumber
in the event handler returns incorrect value after entity recovery:
Example for a new entity:
cmd handler: 0
evt handler: 0
cmd handler: 1
evt handler: 2
cmd handler: 2
evt handler: 3
After recovery:
evt handler: 1
evt handler: 2
evt handler: 3
cmd handler: 3
evt handler: 3
cmd handler: 4
evt handler: 5
When debugging, I've noticed that instead of the first event handler (after recovery) will still use akka.persistence.typed.internal.ReplayingEvents#currentSequenceNumber
, and the following one will switch to akka.persistence.typed.internal.Running.HandlingCommands#currentSequenceNumber
.
Metadata
Metadata
Assignees
Labels
1 - triagedTickets that are safe to pick up for contributing in terms of likeliness of being acceptedTickets that are safe to pick up for contributing in terms of likeliness of being acceptedbugt:persistencet:typed