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

camel-kafka need to commit the last batch offset when shutdown the consumer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.15.0, 2.15.1, 2.15.2
    • 2.15.3, 2.16.0
    • camel-kafka
    • None
    • Unknown

    Description

      Fix of CAMEL-8636 would solve the scenario of when Kafka Broker is shutdown.

      Client shutdown scenario still results in un-committed offsets from the last batch.
      For this situation, Offset needs to be commited just before the Customer shutdown. Meanwhile some lock mechanism needs to be built with Shutdown hook that would do the following:

      • Block messages from getting consumed from kafka
      • Wait for all the messages that are getting processed to be completed.
      • Commit the Offset
      • Shutdown the Cosumer

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              njiang Willem Jiang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: