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

Camel KafkaConsumer should be able to re-consume the Kafka stream.

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.17.0
    • 2.18.0
    • camel-kafka
    • None
    • Unknown

    Description

      In some corner cases we should be able to re-consume a Kafka stream from the beginning on startup of the endpoint.
      For this the Kafka-KafkaConsumer has a method

         public void seekToBeginning(TopicPartition... partitions) {
      
      Sidenode

      There are other methods to manipulate offsets but for this ticket we just look on the re-consume corner case.

      Currently I have implemented this support in a branch here (https://github.com/sruehl/camel/tree/feature/kafka-seek-support) and have also written an jUnit test.
      At this time this test still fails for unknown reasons.

      I would be keen on some feedback on this feature and also would like to advance this branch to make it mergable.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sruehl Sebastian Rühl
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: