[
https://issues.apache.org/jira/browse/CAMEL-24005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Guillaume Nodet updated CAMEL-24005:
------------------------------------
Fix Version/s: 4.22.0
> 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
> Fix For: 4.22.0
>
>
> 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)