You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "davsclaus (via GitHub)" <gi...@apache.org> on 2026/06/08 07:57:16 UTC
[PR] [backport camel-4.18.x] CAMEL-23291: Add ShutdownAware support to EventHubs and Google PubSub consumers [camel]
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [backport camel-4.18.x] CAMEL-23291: Add ShutdownAware support to EventHubs and Google PubSub consumers [camel]
Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus merged PR #23831:
URL: https://github.com/apache/camel/pull/23831
--
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