RetryScheduler incorrectly retries CommandExecutionException containg an AxonNonTransientException #1199
Labels
Priority 3: Could
Low priority. Issues that are nice to have but have a straightforward workaround.
Status: Resolved
Use to signal that work on this issue is done.
Type: Bug
Use to signal issues that describe a bug within the system.
Milestone
When an
org.axonframework.serialization.SerializationException
is thrown upon command handling, that command is being retried if a distributedCommandBus
implementation is being used.This follows from the fact that such an exception will be wrapped in a
CommandExecutionException
, which will maintain the original exception as aString
instead of aThrowable
. Because of the current implementation of theAbstractRetryScheduler
only the given exception's class hierarchy is verified to be explicitly non transient, whilst this problem requires theCommandExecutionException
details to be verified.The text was updated successfully, but these errors were encountered: