-
Notifications
You must be signed in to change notification settings - Fork 4.5k
[#23043] Re-enable single iteration for the Go SDK. #27744
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
Conversation
|
Run Go Spark ValidatesRunner |
|
Run Go Flink ValidatesRunner |
|
Run Go Samza ValidatesRunner |
|
Run Go PostCommit |
Codecov Report
@@ Coverage Diff @@
## master #27744 +/- ##
==========================================
+ Coverage 70.92% 70.95% +0.03%
==========================================
Files 860 860
Lines 104860 104866 +6
==========================================
+ Hits 74368 74406 +38
+ Misses 28934 28901 -33
- Partials 1558 1559 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
Assigning reviewers. If you would like to opt out of this review, comment R: @jrmccluskey for label go. Available commands:
The PR bot will only process comments in the main thread (not review comments). |
|
Whoops. Forgot to mark this as draft Jack. Just wanted to see if we could replicate the failure still (as listed in the description). It doesn't occur on Prism (validated on laptop). |
|
Run Go Spark ValidatesRunner |
1 similar comment
|
Run Go Spark ValidatesRunner |
|
It's very strange, since that element doesn't exist, it's just a windowed value header with no element, since there's only one element at all. Current idea is that element "always" exists, and it's being skipped somehow in the non-singleIterate path. |
|
Run Go Spark ValidatesRunner |
|
Ready for a look. Ready to submit if the Spark Validates runner passes. |
|
Run Go Spark ValidatesRunner |
|
Looks like everything is good apart from the |
|
Thanks for the review! |
Re-enable single iteration "decode on-demand" stream for the Go SDK.
Originally disabled due to #22933, in #23042, the principle remains sound, and it's long past time to look at why it failed in the first place.
The issue was that we didn't drain the iterable properly if there were no reads at all, so we go with the slightly more ham fisted approach of iterating until io.EOF, or stream != nil. If the stream isn't nil, it means the reader got handed off, and it's up to that stream to close.
This avoids unnecessarily draining something off of the main reader which could be very large and costly.
Fixes #23043
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
addresses #123), if applicable. This will automatically add a link to the pull request in the issue. If you would like the issue to automatically close on merging the pull request, commentfixes #<ISSUE NUMBER>instead.CHANGES.mdwith noteworthy changes.See the Contributor Guide for more tips on how to make review process smoother.
To check the build health, please visit https://github.com/apache/beam/blob/master/.test-infra/BUILD_STATUS.md
GitHub Actions Tests Status (on master branch)
See CI.md for more information about GitHub Actions CI or the workflows README to see a list of phrases to trigger workflows.