atiaomar1978-hub opened a new pull request, #24903: URL: https://github.com/apache/camel/pull/24903
**CAMEL-24198** is implemented, tested, committed, and pushed. ## Issue **[CAMEL-24198](https://issues.apache.org/jira/browse/CAMEL-24198)** — *camel-azure-eventhubs - Redesign checkpoint store to use per-partition batching* The consumer used a single shared `processedEvents`, `lastTask`, and `lastScheduledTask` across all partitions, so checkpoint commits from different partitions could interfere with each other. ## Fix In `EventHubsConsumer.java`, replaced shared fields with per-partition maps: - `processedEventsByPartition` - `checkpointTasksByPartition` - `scheduledTasksByPartition` Each partition now tracks its own batch count and schedules its own timeout checkpoint independently. ## Tests Added `EventHubsConsumerPerPartitionCheckpointTest.java` with 4 tests: - Per-partition event counters stay independent - Batch-size checkpoint on one partition does not reset another - Each partition gets its own scheduled checkpoint task - Same partition reuses its checkpoint task within a batch window **12/12 tests passed** (including existing shutdown and updater task tests). ## Git | Item | Value | |------|-------| | **Branch** | `CAMEL-24198-eventhubs-per-partition-checkpoint-batching` | | **Commit** | `8896d7755582` | | **Remote** | Pushed to `origin` | -- 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]
