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

   JIRA: https://issues.apache.org/jira/browse/CAMEL-27504
   
   ## Problem
   
   `RabbitMQProducerInvalidExchangeIT` started to be flaky since the parallel 
build was activated. It publishes to an unknown exchange, so RabbitMQ closes 
the channel. Depending on timing, the root cause of the 
`CamelExecutionException` is either:
   
   - the `ShutdownSignalException` itself (what the test expected), or
   - `org.springframework.amqp.AmqpException: PublisherCallbackChannel is 
closed`, thrown by Spring AMQP from `waitForConfirms` once the broker has 
already closed the channel.
   
   Both mean the broker rejected the publish; the producer behaves correctly.
   
   ## Change
   
   Test-only change: the assertion now accepts either root cause, restricting 
the `AmqpException` case to the `PublisherCallbackChannel is closed` message so 
unrelated failures are still detected.
   
   ## Verification
   
   - `mvn formatter:format impsort:sort` produces no changes
   - `RabbitMQProducerInvalidExchangeIT` passes locally (the race itself only 
shows up in the parallel CI builds, so it was not reproduced locally)
   
   _Claude Code... correction: IBM Bob 2.2.1 on behalf of @apupier_


-- 
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