GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(1.113.14-sp): backport critical bug fixes by BenWhitehead · Pull Request #993 · googleapis/java-storage

This repository was archived by the owner on Sep 25, 2026. It is now read-only.

Conversation

@BenWhitehead

@BenWhitehead BenWhitehead commented Sep 1, 2021

Copy link
Copy Markdown
Collaborator
  1. feat: Remove client side vaildation for lifecycle conditions #816
  2. fix: update BucketInfo translation code to properly handle lifecycle rules #852
  3. fix: improve error detection and reporting for BlobWriteChannel retry state #846 & fix: correct lastChunk retry logic in BlobWriteChannel #918

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
JesseLovelace and others added 4 commits September 1, 2021 14:45
@JesseLovelace @BenWhitehead
feat: Remove client side vaildation for lifecycle conditions (#816)
1f2bb52
* Remove client side vaildation for lifecycle conditions

* fix lint and suggest updating

(cherry picked from commit 5ec84cc)
@BenWhitehead
fix: update BucketInfo translation code to properly handle lifecycle …
b2d1f79
…rules (#852)

Fixes #850

(cherry picked from commit 3b1df1d)
@BenWhitehead
fix: improve error detection and reporting for BlobWriteChannel retry…
895e3a3
… state (#846)

Add new checks to ensure a more informative error than NullPointerException is thrown if the StorageObject or it's size are unable to be resolved on the last chunk.

Fixes #839

(cherry picked from commit d0f2184)
@BenWhitehead
fix: correct lastChunk retry logic in BlobWriteChannel (#918)
42e1f6e
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)
@BenWhitehead
BenWhitehead requested review from a team September 1, 2021 18:56
@product-auto-label product-auto-label Bot added the api: storage Issues related to the googleapis/java-storage API. label Sep 1, 2021
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 1, 2021
@codecov

codecov Bot commented Sep 1, 2021

Copy link
Copy Markdown

Codecov Report

Merging #993 (42e1f6e) into 1.113.14-sp (8614975) will decrease coverage by 0.12%.
The diff coverage is 48.27%.

Impacted file tree graph

@@                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     
Impacted Files Coverage Δ
...om/google/cloud/storage/spi/v1/HttpStorageRpc.java 1.55% <0.00%> (-0.01%) ⬇️
...va/com/google/cloud/storage/spi/v1/StorageRpc.java 66.23% <ø> (ø)
...ogle/cloud/storage/testing/StorageRpcTestBase.java 92.30% <0.00%> (-1.81%) ⬇️
...ava/com/google/cloud/storage/BlobWriteChannel.java 75.00% <55.00%> (-5.20%) ⬇️
...main/java/com/google/cloud/storage/BucketInfo.java 83.96% <85.00%> (-0.01%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8614975...42e1f6e. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

suztomo
suztomo approved these changes Sep 1, 2021
View reviewed changes
@tritone @BenWhitehead
test: remove error string matching (#861)
3f78624
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 BenWhitehead changed the title fix: backport critical bug fixes fix: backport critical bug fixes for 1.113.14-sp Sep 1, 2021
@BenWhitehead 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 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 BenWhitehead removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Sep 28, 2021
@BenWhitehead
BenWhitehead merged commit 447d35d into googleapis:1.113.14-sp Sep 28, 2021
@BenWhitehead
BenWhitehead deleted the backports branch September 28, 2021 20:50
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

1 more reviewer
@suztomo suztomo suztomo approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: storage Issues related to the googleapis/java-storage API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@BenWhitehead @suztomo @JesseLovelace @tritone
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.