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

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

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.8.0
    • Fix Version/s: 3.10.0
    • Component/s: camel-kafka
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: