[ 
https://issues.apache.org/jira/browse/CAMEL-21833?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17932935#comment-17932935
 ] 

Claus Ibsen commented on CAMEL-21833:
-------------------------------------

Okay so its some weird classloding issue, if you use reflection on the manual 
commit instance then it works. Also we should store the commit header on the 
outer exchange as then it wont be lost in case end user do various message 
transformations in the routes

> Kafka Batch Manual commit doesn't work if used in Kamelets
> ----------------------------------------------------------
>
>                 Key: CAMEL-21833
>                 URL: https://issues.apache.org/jira/browse/CAMEL-21833
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-kafka
>            Reporter: Andrea Cosentino
>            Assignee: Claus Ibsen
>            Priority: Major
>
> if you try this example: 
> https://github.com/apache/camel-kamelets-examples/tree/main/jbang/kafka-batch-s3
> you'll notice the manual commit never happens. If you try to log the content 
> of the header in the batch-manual-commit-action using
> https://github.com/apache/camel/blob/main/components/camel-kamelet/src/main/java/o[…]/component/kamelet/utils/transform/kafka/BatchManualCommit.java
> it seems on line 34 
> the processor is not able to access the KafkaManualCommit instance
> If you run the integration test in the kafka component, everything seems to 
> work, but with Kamelets it's not



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to