Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

rolandjohann
Copy link

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

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