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

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.6.0, 3.7.0, 3.7.1, 3.7.2, 3.8.0
    • Fix Version/s: 3.9.0
    • Component/s: camel-kafka
    • Labels:
      None
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: