BigtableIO: Force minimum value of desiredBundleSizeBytes to be 1#28798
Merged
Abacn merged 3 commits intoapache:masterfrom Oct 5, 2023
Merged
BigtableIO: Force minimum value of desiredBundleSizeBytes to be 1#28798Abacn merged 3 commits intoapache:masterfrom
desiredBundleSizeBytes to be 1#28798Abacn merged 3 commits intoapache:masterfrom
Conversation
4cf0310 to
9456610
Compare
desiredBundleSizeBytes to be 1
41b32c7 to
87960f7
Compare
Fixes apache#28793 in the way suggested in apache#28793 (comment): - `BoundedReadEvaluatorFactory#getInitialInputs` may still calculate a `bytesPerBundle` of `0`; but - `BigtableSource#split` will interpret it as `1` in order to not violate the `checkArgument()` in https://github.com/apache/beam/blob/71c8459633ec86e576eca080a26be9f42474ecb2/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigtable/BigtableIO.java#L1623-L1626
87960f7 to
7ed57ef
Compare
Contributor
|
Assigning reviewers. If you would like to opt out of this review, comment R: @bvolpato for label java. Available commands:
The PR bot will only process comments in the main thread (not review comments). |
Abacn
reviewed
Oct 4, 2023
bvolpato
approved these changes
Oct 5, 2023
b854f02 to
afe1dc9
Compare
Contributor
Author
|
The "PreCommit Whitespace" failure seems to me to be unrelated to the changes in this PR: Edit: It could also be caused by the modifications to CHANGES.md, in which case it's not a great error message. |
7b840f2 to
3096265
Compare
Contributor
Author
|
Running $ python -m pip install --user whitespacelint==1.1.0
Requirement already satisfied: whitespacelint==1.1.0 in /home/joar/.local/lib/python3.8/site-packages (1.1.0)
$ whitespacelint CHANGES.md
# exits with 0
$ git rev-parse HEAD
3096265e05ff59ae192cc7f4a571e9247937211b |
Contributor
|
whitespace issue was an issue on master and now fixed #28845 |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #28793 in the way suggested in #28793 (comment):
BoundedReadEvaluatorFactory#getInitialInputsmay still calculate abytesPerBundleof0(e.g. whentargetParallelism > estimatedBytes); butBigtableSource#splitwill interpret it as1in order to not violate thecheckArgument()inbeam/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/bigtable/BigtableIO.java
Lines 1623 to 1626 in 71c8459
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.