This is an automated email from the ASF dual-hosted git repository.

orpiske pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new f59b5fab3d5 CAMEL-17051: the consumer should commit when a pausable 
error happens
f59b5fab3d5 is described below

commit f59b5fab3d59bc413baa15cf1cd3951a17cb260f
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Wed Apr 20 16:08:32 2022 +0200

    CAMEL-17051: the consumer should commit when a pausable error happens
---
 .../component/kafka/consumer/support/KafkaRecordProcessorFacade.java     | 1 +
 1 file changed, 1 insertion(+)

diff --git 
a/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/consumer/support/KafkaRecordProcessorFacade.java
 
b/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/consumer/support/KafkaRecordProcessorFacade.java
index 0ced3260246..ee641acc08e 100644
--- 
a/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/consumer/support/KafkaRecordProcessorFacade.java
+++ 
b/components/camel-kafka/src/main/java/org/apache/camel/component/kafka/consumer/support/KafkaRecordProcessorFacade.java
@@ -85,6 +85,7 @@ public class KafkaRecordProcessorFacade {
 
                 if (consumerListener != null) {
                     if (!consumerListener.afterProcess(lastResult)) {
+                        commitManager.commitOffset(partition, 
lastResult.getPartitionLastOffset());
                         return lastResult;
                     }
                 }

Reply via email to