Skip to content

Kafka Source in combination with Kafka Sink leads to infinite loop#65

Open
rolandjohann wants to merge 1 commit intoapache:trunkfrom
rolandjohann:trunk
Open

Kafka Source in combination with Kafka Sink leads to infinite loop#65
rolandjohann wants to merge 1 commit intoapache:trunkfrom
rolandjohann:trunk

Conversation

@rolandjohann
Copy link
Copy Markdown

Because Kafka Source sets some header fields - especially "topic" - this leads to unexpected behavior in combination with the Kafka Sink => The messages will be consumed and produced again into that topic until the agent will be shut down.

The Kafka Sink determines the topic to which the event should be produced to based on a header field "topic" and overwrites the configuration of the sink.
To (nearly) fix that there are multiple options:

  • update the documentation - done with this PR
  • explicitly allow topic overriding at the kafka sink via a flag
  • write the source topic into another header field - maybe "kafka.topic"

…rce will set and which kind of impacts that implicit behaviour can have.
@rolandjohann rolandjohann changed the title Kafka Source in combination of Kafka Sink leads to indefinite loop Kafka Source in combination with Kafka Sink leads to indefinite loop Oct 12, 2016
@rolandjohann rolandjohann changed the title Kafka Source in combination with Kafka Sink leads to indefinite loop Kafka Source in combination with Kafka Sink leads to infinite loop Oct 12, 2016
@asfgit
Copy link
Copy Markdown

asfgit commented Aug 17, 2018

Can one of the admins verify this patch?

waidr pushed a commit to waidr/flume that referenced this pull request Jul 24, 2019
* add clean

* add clean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants