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
fix(1.113.14-sp): backport critical bug fixes #993
Merged
Merged
Conversation
This file contains 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
Collaborator
BenWhitehead
commented
Sep 1, 2021
- feat: Remove client side vaildation for lifecycle conditions #816
- fix: update BucketInfo translation code to properly handle lifecycle rules #852
- fix: improve error detection and reporting for BlobWriteChannel retry state #846 & fix: correct lastChunk retry logic in BlobWriteChannel #918
* Remove client side vaildation for lifecycle conditions * fix lint and suggest updating (cherry picked from commit 5ec84cc)
Add new method StorageRpc#queryResumableUpload which allows getting a shallow StorageObject for a resumable upload session which is complete. Update BlobWriteChannel to use StoageRpc#queryResumableUpload instead of StorageRpc#get when attempting to validate the upload size of an object when it determines the upload is complete and is on the last chunk. If a BlobWriteChannel is opened with a conditional like IfGenerationMatch it is not possible to simply get the object, as the object can drift generationally while the resumable upload is being performed. Related to #839 (cherry picked from commit ab0228c)
product-auto-label
bot
added
the
api: storage
Issues related to the googleapis/java-storage API.
label
Sep 1, 2021
google-cla
bot
added
the
cla: yes
This human has signed the Contributor License Agreement.
label
Sep 1, 2021
Codecov Report
@@ Coverage Diff @@
## 1.113.14-sp #993 +/- ##
=================================================
- Coverage 64.61% 64.48% -0.13%
+ Complexity 634 633 -1
=================================================
Files 32 32
Lines 5313 5336 +23
Branches 519 527 +8
=================================================
+ Hits 3433 3441 +8
- Misses 1718 1730 +12
- Partials 162 165 +3
Continue to review full report at Codecov.
|
suztomo
approved these changes
Sep 1, 2021
It looks like the text for this error on the backend has changed (sometimes) from "Precondition Failed" to "At least one of the pre-conditions you specified did not hold". I don't think it's really necessary to check the exact message in any case given that we do check for a code of 412, which implies a precondition failure. I added a check of the error Reason instead, which is more standardized. Fixes #853 (cherry picked from commit 146a3d3)
BenWhitehead
changed the title
fix: backport critical bug fixes
fix: backport critical bug fixes for 1.113.14-sp
Sep 1, 2021
BenWhitehead
changed the title
fix: backport critical bug fixes for 1.113.14-sp
fix(1.113.14-sp): backport critical bug fixes
Sep 1, 2021
BenWhitehead
added
the
do not merge
Indicates a pull request not ready for merge, due to either quality or timing.
label
Sep 2, 2021
BenWhitehead
removed
the
do not merge
Indicates a pull request not ready for merge, due to either quality or timing.
label
Sep 28, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
api: storage
Issues related to the googleapis/java-storage API.
cla: yes
This human has signed the Contributor License Agreement.
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.