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

Route from kafka topic to another kafka topic issue

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.19.0
    • 2.19.0
    • camel-kafka
    • None
    • Unknown

    Description

      Because the consumer set headers with kafka topic and partition from the consumer, then these will override the endpoint configured on the producer, eg

      from("kafka:foo")
         ..
         to("kafka:bar")
      

      will end up going back to foo.

      You can remove the headers to make it work

      from("kafka:foo")
         ..
         removeHeaders("kafka*")
         to("kafka:bar")
      

      But maybe we should have an option on the producer that takes the endpoint value always, and you need to turn the option on to allow header overrides.

      Another option is to detect that its the same topic to avoid sending it back to itself.

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: