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

   ## Backport of #23806
   
   Cherry-pick of #23806 onto `camel-4.18.x`.
   
   **Original PR:** #23806 - CAMEL-23291: Add ShutdownAware support to 
EventHubs and Google PubSub consumers
   **Original author:** @davsclaus
   **Target branch:** `camel-4.18.x`
   
   ### Original description
   
   - Implement `ShutdownAware` interface in `EventHubsConsumer` and 
`GooglePubsubConsumer` to prevent potential message loss during graceful 
shutdown
   - Track in-flight exchanges with `AtomicInteger pendingExchanges` counter in 
both consumers
   - Split shutdown lifecycle: `doStop()` stops accepting new messages while 
keeping connections alive; `doShutdown()` releases resources after in-flight 
exchanges complete
   - For Google PubSub, instrument both synchronous pull and asynchronous 
(`CamelMessageReceiver`) code paths
   
   This follows the same pattern established in CAMEL-23260 for 
`ServiceBusConsumer`.
   
   _Claude Code on behalf of Claus Ibsen_


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