Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.19.0
-
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.