davsclaus opened a new pull request, #30858:
URL: https://github.com/apache/camel/pull/30858

   ## Description
   
   
`HazelcastSedaTransactedStopTest.exchangeThatCannotBeCreatedDoesNotHoldUpTheStop`
 (added in #30816) fails at random. It failed in all three attempts on the CI 
build of #30824, while the Main build of #30816 passed it:
   
   ```
   
HazelcastSedaTransactedStopTest.exchangeThatCannotBeCreatedDoesNotHoldUpTheStop 
» IllegalState Simulated failure to create the exchange
       at 
...HazelcastSedaTransactedStopTest$FailingExchangeFactory.create(HazelcastSedaTransactedStopTest.java:266)
       at 
org.apache.camel.support.DefaultConsumer.createExchange(DefaultConsumer.java:155)
       at 
org.apache.camel.component.hazelcast.seda.HazelcastSedaConsumer.run(HazelcastSedaConsumer.java:125)
       at 
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
   ```
   
   The test makes the consumer thread throw that exception on purpose, and then 
waits with Awaitility until the failure has happened. By default Awaitility 
catches the uncaught exceptions of all threads while it waits 
(`defaultCatchUncaughtExceptions` is `true`), and fails the await with them. So 
the test failed whenever the consumer threw while the await was still polling, 
and passed when it threw before the await started. The await now uses 
`dontCatchUncaughtExceptions()`. The other awaits of the class do not run while 
a consumer thread fails.
   
   No change to the main code.
   
   ## Target
   
   - [x] I checked that the commit is targeting the correct branch (Camel 4 
uses the `main` branch)
   
   ## Tracking
   
   - [x] [CAMEL-27502](https://issues.apache.org/jira/browse/CAMEL-27502) 
(follow-up for its test)
   
   _Claude Code on behalf of Claus Ibsen (@davsclaus)_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to