You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2021/03/31 07:21:00 UTC

[jira] [Resolved] (CAMEL-16413) [camel-kafka] Avoid committing offsets onPartitionsRevoked during shutdown when autoCommitOnStop is "none"

     [ https://issues.apache.org/jira/browse/CAMEL-16413?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen resolved CAMEL-16413.
---------------------------------
      Assignee: Claus Ibsen
    Resolution: Fixed

Ah I looked in the code, and yes we should make camel-kafka commit accordingly to the autoCommitOnStop configuration option.

Thanks for reproting.

> [camel-kafka] Avoid committing offsets onPartitionsRevoked during shutdown when autoCommitOnStop is "none"
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-16413
>                 URL: https://issues.apache.org/jira/browse/CAMEL-16413
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-kafka
>    Affects Versions: 3.8.0
>            Reporter: Suneet Kumar
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.10.0
>
>
> During shutdown process, whenever a partition is revoked, `onPartitionsRevoked` method is called, which is forcing `commitSync`  even when `autoCommitOnStop` is set to none.
>  
> ```
>  {{DEBUG org.apache.camel.component.kafka.KafkaConsumer: - onPartitionsRevoked: **-Thread 0 from topic **}}
> {{DEBUG org.apache.camel.component.kafka.KafkaConsumer: - Forcing commitSync **-Thread 0 from topic ** with offset: 31621}}
> ```
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)