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

Kafka Consumer Component always commits latest offset on shutdown even if autoCommitOnStop == none

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 3.6.0, 3.7.0, 3.7.1, 3.7.2, 3.8.0
    • 3.9.0
    • camel-kafka
    • None
    • Moderate

    Description

      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:

      1. consumer.unsubscribe() is called
      2. onPartitionsRevoked() is called
      3. commitOffset() with forceCommit == true is called

      Attachments

        Activity

          People

            Unassigned Unassigned
            dfontana@cuebiq.com Damiano Fontana
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: