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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
