Two events come into SM simultaneously but only one is processed

27 views
Skip to first unread message

Roman Prykhodko

unread,
Apr 15, 2020, 12:45:25 PM4/15/20
to masstransit-discuss
We have two similar events (for different sagas) come in State Machine in the same time in the same handler. Only one of them switches it's saga into expected state. The other one is processed but saga remains unswitched. 
There is no any error in log, error queue is empty.
Please assist!

Pavel Mihailov

unread,
Apr 15, 2020, 2:03:30 PM4/15/20
to masstransit-discuss
Which persistence are you using? Which version of MassTransit ?

Roman Prykhodko

unread,
Apr 15, 2020, 2:31:27 PM4/15/20
to masstransit-discuss
EntityFrameworkSagaRepository
Masstransit 5.1.5

Pavel Mihailov

unread,
Apr 16, 2020, 2:48:53 AM4/16/20
to masstransit-discuss

Roman Prykhodko

unread,
Apr 16, 2020, 3:57:52 AM4/16/20
to masstransit-discuss
Core, Optimistic mode

Pavel Mihailov

unread,
Apr 16, 2020, 10:04:12 AM4/16/20
to masstransit-discuss
Is your RowVersion of Saga entry increased 2 times? Can you share some code sample of your handle event handle block? 
Have you tried logging consumed events?
Reply all
Reply to author
Forward
0 new messages