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

   ## Summary
   - 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, decremented in 
`try/finally` blocks in `onComplete()`/`onFailure()`
   
   ## Test plan
   - [x] New unit tests for `deferShutdown()`, `getPendingExchangesSize()`, 
`doStop()`, `doShutdown()`
   - [x] All existing 17 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]

Reply via email to