-
Notifications
You must be signed in to change notification settings - Fork 14.9k
DRAFT KAFKA-18692: Consider to unify KStreamImpl "repartitionRequired" with GraphNode "keyChangingOperation" #18800
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
base: trunk
Are you sure you want to change the base?
Conversation
|
Hi, @mjsax |
|
Thanks for this draft -- might take a few days until I find time to take a look. |
streams/src/main/java/org/apache/kafka/streams/kstream/internals/KStreamImpl.java
Outdated
Show resolved
Hide resolved
|
Hi, @mjsax After Analyzing the cause, I'll request the review again However, I would appreciate it if you could take a look at the following comment when you have time. |
|
@ mjsax If the POC is worth applying, I'll resolve the conflict. |
|
@mjsax kindly ping |
|
@appchemist -- Sorry for dropping the ball on this work. -- I would have time now, to support you with with PR, if you are still interested. |
|
@mjsax Of course, I'm still interested. |
37f5762 to
4ae6934
Compare
|
I've resolve the conflict. |
mjsax
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Finally made a pass. Hope the comments/question make sense and help.
streams/src/main/java/org/apache/kafka/streams/kstream/internals/graph/GraphNode.java
Outdated
Show resolved
Hide resolved
streams/src/main/java/org/apache/kafka/streams/kstream/internals/InternalStreamsBuilder.java
Outdated
Show resolved
Hide resolved
streams/src/main/java/org/apache/kafka/streams/kstream/internals/InternalStreamsBuilder.java
Outdated
Show resolved
Hide resolved
streams/src/main/java/org/apache/kafka/streams/kstream/internals/InternalStreamsBuilder.java
Outdated
Show resolved
Hide resolved
streams/src/main/java/org/apache/kafka/streams/kstream/internals/KGroupedStreamImpl.java
Outdated
Show resolved
Hide resolved
streams/src/main/java/org/apache/kafka/streams/kstream/internals/graph/GraphNode.java
Outdated
Show resolved
Hide resolved
streams/src/main/java/org/apache/kafka/streams/kstream/internals/graph/GraphNode.java
Outdated
Show resolved
Hide resolved
streams/src/main/java/org/apache/kafka/streams/kstream/internals/graph/GraphNode.java
Outdated
Show resolved
Hide resolved
streams/src/main/java/org/apache/kafka/streams/kstream/internals/graph/GraphNode.java
Outdated
Show resolved
Hide resolved
streams/src/main/java/org/apache/kafka/streams/kstream/internals/graph/GraphNode.java
Outdated
Show resolved
Hide resolved
9fda88f to
b3ff396
Compare
streams/src/main/java/org/apache/kafka/streams/kstream/internals/graph/GraphNode.java
Outdated
Show resolved
Hide resolved
streams/src/main/java/org/apache/kafka/streams/kstream/internals/KStreamImpl.java
Outdated
Show resolved
Hide resolved
streams/src/main/java/org/apache/kafka/streams/kstream/internals/graph/GraphNode.java
Outdated
Show resolved
Hide resolved
|
Since the existing commit had conflicts when rebasing onto the latest trunk, I created a new commit instead. All streams tests pass, but some integration tests occasionally fail. |
|
This PR is being marked as stale since it has not had any activity in 90 days. If you If you are having difficulty finding a reviewer, please reach out on the [mailing list](https://kafka.apache.org/contact). If this PR is no longer valid or desired, please feel free to close it. If no activity occurs in the next 30 days, it will be automatically closed. |
… GraphNode "keyChangingOperation"
… GraphNode "keyChangingOperation" - add findNearestParentNodeMatching that performs BFS - Determine whether to repartition using BFS
… GraphNode "keyChangingOperation" - To address the StreamsGraphTest.shouldNotThrowNPEWithMergeNodes test failure case
… GraphNode "keyChangingOperation" - cleanup
b3ff396 to
f5e96c6
Compare
|
@mjsax happy new year. Sorry for the late work, I’ve been a bit busy recently. |
That PR is a POC.
For now, I only focused on modifying
KStreamImpl.repartitionRequiredto replace it withGraphNode.keyChangingOperation.So I'll be working on it further to make sure it's the right fix and need to write some test code.
Committer Checklist (excluded from commit message)