We have a few Sagas that SendLocal a Command to a Handler to perform a small amount of initialization work. The handler then Replies to the Saga.
The Reply intermittently fails with SagaNotFound (We have configured this as a fatal error in our case). The only handlers for these Commands and Messages are the 1 Saga and the 1 Handler.
The reply Message is not configured in the mapping for the Saga nor does it contain a value for the CorrelationProperty - I am under the impression that the correlation to a Saga with a Reply was handled internally, can you confirm? If this is incorrect it is most likely the problem but then I would be confused on why it works other times.
This has been observed with SqlPersistence and Learning Persistence. I believe I have been able to narrow this down to an issue with hosting multiple endpoints in 1 host. If I only start one endpoint I am unable to reproduce. Other than that I am at a loss as to how to proceed in troubleshooting this. I can say with 99% certainty that this isn’t an out of order message problem…i.e. saga completing early. It’s as if the Saga just never gets persisted but was known to be invoked by the Command it sent (and the subsequent Reply that gets lost)
We are using Outbox with SqlPersistence if that helps at all.
Any insight would be appreciated.