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

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

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.15.0, 2.15.1, 2.15.2
    • Fix Version/s: 2.15.3, 2.16.0
    • Component/s: camel-kafka
    • Labels:
      None
    • Estimated Complexity:
      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

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

                Dates

                • Created:
                  Updated:
                  Resolved: