kafka
kafka copied to clipboard
Enable KStream to be merged with itself
Why: It is an interesting question what should be the result when merging a KStream with itself. Should the merge duplicate the messages or should it be a noop. I think the only reasonable solution is to duplicate the messages because there are many different ways to disguise a KStream (e.g. adding peek operation on it). It is therefore impossible to implement the solution where it is a noop.
How does it help with resolving the issue: This change makes the behavior of the merge operation consistent.
I have really no idea why completely different tests are failing.
Can you create a JIRA ticket for this PR? If it's not working right now, I would consider it a bug.
And yes, I agree that merging a KStream with itself should result in duplicating each record.
For the tests, it's most likely flaky test.
@Danny02 -- Are you still interested to finish this PR?
Closing this PR due to inactivity. Feel free to resume at any time -- and we should have a Jira for this.