atiaomar1978-hub opened a new pull request, #25779:
URL: https://github.com/apache/camel/pull/25779

   ## Summary
   
   _AI-generated on behalf of atiaomar1978-hub._
   
   Backport of #25558 for `camel-4.18.x` (correct LTS branch per maintainer 
feedback on #25559).
   
   Fixes [CAMEL-24408](https://issues.apache.org/jira/browse/CAMEL-24408): when 
a SEDA producer and consumer share the same endpoint URI with 
`discardIfNoConsumers=true`, removing the consumer route must silently discard 
subsequent messages instead of throwing `SedaConsumerNotAvailableException`.
   
   ## Changes
   
   - Keep shared queue references when producers remain after consumer route 
removal
   - Avoid partial endpoint shutdown leaving producers with stale/null queue
   - Discard messages when `discardIfNoConsumers` is enabled even if queue 
reference is unavailable
   - Port all review fixes from main PR #25558 (queue lifecycle, idempotent 
shutdown, producer restart)
   - Includes `SedaDiscardIfNoConsumerAfterRemovalTest` and 
`SedaDiscardIfNoConsumersProducerRouteRestartTest`
   
   ## Related
   
   - Main PR: #25558
   - Supersedes #25559 (was incorrectly targeting `camel-4.19.x`; see 
@davsclaus / @Croway feedback)
   
   ## Testing
   
   ```bash
   ./mvnw -pl core/camel-core -am 
-Dtest=SedaDiscardIfNoConsumerAfterRemovalTest,SedaDiscardIfNoConsumersProducerRouteRestartTest,SedaDiscardIfNoConsumerTest
 test
   ```


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