Commit 9b0dfb1
CAMEL-24063: Fix flaky DirectProducerBlockingTest.testProducerBlocksResumeTest
The test suspends a route then sends with block=true&timeout=2000.
A background thread waits for the main thread to reach TIMED_WAITING,
then resumes the route. Under CI load, detecting the thread state and
resuming can take more than 2 s, causing:
DirectConsumerNotAvailableException: No consumers available on
endpoint: direct://suspended?block=true&timeout=2000
Fix: increase both the background thread's Awaitility timeout (2s→10s)
and the sendBody block timeout (2000→10000ms) so there is enough
headroom even on loaded CI nodes.
Develocity evidence: testProducerBlocksResumeTest has 8 flaky runs
out of 716 total on main (1.1% flaky rate).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 1c6f6dc commit 9b0dfb1
1 file changed
Lines changed: 8 additions & 4 deletions
File tree
- core/camel-core/src/test/java/org/apache/camel/component/direct
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
| |||
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
101 | | - | |
102 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
103 | 107 | | |
104 | 108 | | |
105 | 109 | | |
| |||
0 commit comments