Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-16413

[camel-kafka] Avoid committing offsets onPartitionsRevoked during shutdown when autoCommitOnStop is "none"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.8.0
    • 3.10.0
    • camel-kafka
    • None
    • Unknown

    Description

      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

      ```

       

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            suneetk92 Suneet Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: