-
Notifications
You must be signed in to change notification settings - Fork 589
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
feat(streaming): handle multiple edges with no-op fragment #9320
Conversation
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
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.
LGTM! What an interesting case.
Codecov Report
@@ Coverage Diff @@
## main #9320 +/- ##
==========================================
- Coverage 70.79% 70.79% -0.01%
==========================================
Files 1225 1227 +2
Lines 203343 203448 +105
==========================================
+ Hits 143955 144026 +71
- Misses 59388 59422 +34
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 5 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao <[email protected]>
Signed-off-by: Bugen Zhao [email protected]I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
As explained in #9319. When the fragment graph builder on the frontend finds it going to add a second edge between the fragments, it'll manually introduce a fragment with a single
NoOp
operator ("unknown" below) and insert it between them. The exchange between the upstream andNoOp
will beNoShuffle
, while the one betweenNoOp
and the downstream will be the original shuffle type. This is the solution 1.2 proposed in Multiple Edges in the Stream Graph.I've also tried to do this in optimizer, but eventually found the approach in this PR most intuitive and accurate: it only inserts
NoOp
if necessary and no false positives exist. BTW, since we've found thatNoShuffle
exchange is much more friendly to scaling than we thought after #8694, I guess we may have no fear about that. :)Resolve #9319.
Checklist For Contributors
./risedev check
(or alias,./risedev c
)Checklist For Reviewers
Documentation
Click here for Documentation
Types of user-facing changes
Please keep the types that apply to your changes, and remove the others.
Release note