-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Delivery behavior, when it's impossible to load Aggregate for some reason (a coding mistake, storage issues, etc.), is unclear. It looks like all commands and events that point to corrupted Aggregate stays in InboxStorage forever. And re-delivered on each shard delivery iteration.
Steps to reproduce:
- Throw an exception in the
@Applymethod of the aggregate. - Send
FirstCommandto the aggregate and emit the event that will lead to the exception. - Send
SecondCommandto the aggregate and emit the event that will lead to the exception. - Send one more command with the same
ShardIndexto another entity.
What happens:
- Aggregate failed to apply the event and threw an exception;
- Diagnostic event
CannotDispatchDuplicateCommandthrown forSecondCommand.
What I expect:
- Aggregate failed to apply the event and threw an exception;
Diagnostic eventCannotDispatchDuplicateCommandthrown forSecondCommand;- Another entity successfully handles the command.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
No status