Guillaume Nodet created CAMEL-24027:
---------------------------------------
Summary: Fix flaky InOutQueueProducerAsyncLoadTest
Key: CAMEL-24027
URL: https://issues.apache.org/jira/browse/CAMEL-24027
Project: Camel
Issue Type: Bug
Components: camel-sjms
Reporter: Guillaume Nodet
The InOutQueueProducerAsyncLoadTest is flaky because it sends 5000 messages via
a 2-thread executor with only a 30-second timeout. On slower CI machines,
processing 5000 InOut JMS requests through an embedded broker and back can
exceed the timeout.
Fix:
- Reduce message count from 5000 to 500 (still validates load behavior)
- Replace Awaitility polling with CountDownLatch for precise completion tracking
- Add AtomicInteger to track and assert zero failures
- Use executor.awaitTermination() with explicit timeout instead of polling
isTerminated()
--
This message was sent by Atlassian Jira
(v8.20.10#820010)