Hi all.
The docs for v2.x says
Since the processing is asynchronous, Exceptions cannot be propagated to the components publishing the Event. Exceptions raised by Sagas while handling an Event are logged and discarded.
However in the relevant part of the code in AsyncSagaEventProcessor
try {
ensureActiveUnitOfWork();
invocationCount++;
saga.handle(entry.getPublishedEvent());
} catch (Exception e) {
RetryPolicy retryPolicy = errorHandler.onErrorInvoking(saga, entry.getPublishedEvent(),
invocationCount, e);
if (retryPolicy.requiresRollback()) {
rollbackUnitOfWork(e);
}
requiresRetry = retryPolicy.requiresRescheduleEvent();
if (requiresRetry && retryPolicy.waitTime() > 0) {
Thread.sleep(retryPolicy.waitTime());
}
}
I can't see any logging of the exceptions and looking at my logs I can't find any exception logged.
I spent quite some time trying to find what happened in my code until I found out an exception being swallowed and apparently without any logging.
Is there any other place where I should look at for that logging?
Cheers.