You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "Croway (via GitHub)" <gi...@apache.org> on 2026/04/03 15:12:00 UTC

[PR] CAMEL-23260: fix graceful shutdown for ServiceBus consumer (backport 4.18.x) [camel]

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

   ## Summary
   Backport of #22443 to camel-4.18.x.
   
   - Implement `ShutdownAware` in `ServiceBusConsumer` to defer shutdown until in-flight exchanges complete their ACK/NACK to Azure Service Bus
   - Change `doStop()` from `client.close()` to `client.stop()` to keep the AMQP connection alive for in-flight message acknowledgement
   - Add `doShutdown()` to close the client only after all exchanges have drained
   - Track in-flight exchanges with `AtomicInteger` counter
   
   ## Test plan
   - [x] New unit tests for `deferShutdown()`, `getPendingExchangesSize()`, `doStop()`, `doShutdown()`
   - [x] All existing consumer tests continue to pass
   - [x] `mvn verify` passes on `camel-azure-servicebus` module


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23260: fix graceful shutdown for ServiceBus consumer (backport 4.18.x) [camel]

Posted by "oscerd (via GitHub)" <gi...@apache.org>.
oscerd merged PR #22444:
URL: https://github.com/apache/camel/pull/22444


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org