[ 
https://issues.apache.org/jira/browse/CAMEL-24005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Work on CAMEL-24005 started by Guillaume Nodet.
-----------------------------------------------
> Fix flaky JmsTransactedDeadLetterChannel*RollbackOnExceptionIT tests
> --------------------------------------------------------------------
>
>                 Key: CAMEL-24005
>                 URL: https://issues.apache.org/jira/browse/CAMEL-24005
>             Project: Camel
>          Issue Type: Bug
>            Reporter: Guillaume Nodet
>            Assignee: Guillaume Nodet
>            Priority: Major
>              Labels: flaky-test
>
> The JMS transacted dead letter channel tests are flaky on CI:
> * JmsTransactedDeadLetterChannelHandlerRollbackOnExceptionIT: 41 failures + 5 
> flaky out of 517 runs (8.9% failure rate) in the last 10 days
> * JmsTransactedDeadLetterChannelNotHandlerRollbackOnExceptionIT: 11 failures 
> + 14 flaky in the same period
> The root cause is a race condition: the tests check the DLQ immediately after 
> sending a message, without waiting for the transacted route to fully process 
> the exchange and commit/rollback the transaction. Under CI load, the route 
> processing may not have completed when the DLQ assertion runs.
> The fix uses NotifyBuilder to wait for the exchange to be fully done before 
> checking the DLQ contents.



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

Reply via email to