Croway opened a new pull request, #26552: URL: https://github.com/apache/camel/pull/26552
Fixes [CAMEL-24797](https://issues.apache.org/jira/browse/CAMEL-24797). Splitting a `List<Exchange>` body (camel-kafka batching consumer, `GroupedExchangeAggregationStrategy`) produced child exchanges whose body was the part `Exchange` itself, with no headers. The Splitter now unwraps `Exchange` parts the way it already unwraps `Message` parts. As agreed on the JIRA: - the part message is **copied, not adopted** (`copyFrom`), so the exchanges owned by a batching consumer stay intact after the split (pooled exchanges reset the message on completion); - exchange properties of the part are not carried over, same as for `Message` parts; - `KafkaConsumerAsyncManualCommitIT` reads the manual-commit header directly from the child now; - the Kafka "Batch Headers" docs example drops the variable workaround (catalog mirror synced); - upgrade guide 4.23 entry, since `getBody(Exchange.class)` on a child now returns `null`. Main only, no backport (behaviour change). Tests: new `SplitListOfExchangesTest` (body, headers, no property copy, parts untouched); all 265 Splitter tests in camel-core pass; camel-kafka tests compile. _Claude Code on behalf of Croway_ -- 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]
