[
https://issues.apache.org/jira/browse/CAMEL-16327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17301518#comment-17301518
]
Omar Al-Safi edited comment on CAMEL-16327 at 3/15/21, 9:10 AM:
----------------------------------------------------------------
[~acosentino] [[email protected]] yes that is fixed by CAMEL-16343. The
issue as has been highlighted is that, whenever onPartitionsRevoked called
internally in the Kafka Consumer, it was committing offsets regardless if you
set `autoCommitEnable` or not. Now if you set `autoCommitEnable` to `false`, it
will not commit any offsets.
was (Author: omarsmak):
[~acosentino] [[email protected]] yes that is fixed by CAMEL-16343. The
issue as has been highlighted is that, whenever onPartitionsRevoked internally
in the Kafka Consumer, it was committing offsets regardless if you set
`autoCommitEnable` or not. Now if you set `autoCommitEnable` to `false`, it
will not commit any offsets.
> Kafka Consumer Component always commits latest offset on shutdown even if
> autoCommitOnStop == none
> --------------------------------------------------------------------------------------------------
>
> Key: CAMEL-16327
> URL: https://issues.apache.org/jira/browse/CAMEL-16327
> Project: Camel
> Issue Type: Bug
> Components: camel-kafka
> Affects Versions: 3.6.0, 3.7.0, 3.7.1, 3.7.2, 3.8.0
> Reporter: Damiano Fontana
> Priority: Major
> Fix For: 3.9.0
>
>
> Kafka Consumer Component configured with
> * autoCommitEnable == false
> * allowManualCommit == true
> * autoCommitOnStop == none
> always commits the last seen offset for every partition when route is shut
> down.
> What's happens is the following:
> # consumer.unsubscribe() is called
> # onPartitionsRevoked() is called
> # commitOffset() with forceCommit == true is called
--
This message was sent by Atlassian Jira
(v8.3.4#803005)