Guillaume Nodet created CAMEL-24028:
---------------------------------------

             Summary: Fix flaky 
JmsTransactedDeadLetterChannelNotHandlerRollbackOnExceptionIT
                 Key: CAMEL-24028
                 URL: https://issues.apache.org/jira/browse/CAMEL-24028
             Project: Camel
          Issue Type: Bug
          Components: camel-jms
            Reporter: Guillaume Nodet


The test is flaky because consumer.receiveBody() uses the transacted JMS 
component to read from the Artemis DLQ after a transaction rollback. The 
transacted session can be briefly in a closed state after the rollback, causing 
"Session is closed" errors.

Fix: Wrap the DLQ read in Awaitility with ignoreExceptions() to retry on 
transient session-closed errors.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to