Skip to content

test(storage): resumable uploads abort on errors#6790

Merged
coryan merged 1 commit intogoogleapis:mainfrom
coryan:test-storage-upload-errors-prevent-finalization
Jun 16, 2021
Merged

test(storage): resumable uploads abort on errors#6790
coryan merged 1 commit intogoogleapis:mainfrom
coryan:test-storage-upload-errors-prevent-finalization

Conversation

@coryan
Copy link
Copy Markdown
Contributor

@coryan coryan commented Jun 16, 2021

This new test verifies that resumable uploads abort (do not finalize) if
one of the intermediate UploadChunk() requests has a permanent error
or otherwise exhaust the retry policy. I wrote this test expecting that
the library had a bug and needed fixing, but turns out I do not give
myself enough credit.

Fixes #6779


This change is Reviewable

This new test verifies that resumable uploads abort (do not finalize) if
one of the intermediate `UploadChunk()` requests has a permanent error
or otherwise exhaust the retry policy. I wrote this test expecting that
the library had a bug and needed fixing, but turns out I do not give
myself enough credit.
@product-auto-label product-auto-label Bot added the api: storage Issues related to the Cloud Storage API. label Jun 16, 2021
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jun 16, 2021
@google-cloud-cpp-bot
Copy link
Copy Markdown
Contributor

Google Cloud Build Logs
For commit: 7d43e8cd265b544c0286322bb06de767985db683

ℹ️ NOTE: Kokoro logs are linked from "Details" below.

@codecov
Copy link
Copy Markdown

codecov Bot commented Jun 16, 2021

Codecov Report

Merging #6790 (7d43e8c) into main (0264c28) will decrease coverage by 0.30%.
The diff coverage is 89.53%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #6790      +/-   ##
==========================================
- Coverage   95.81%   95.51%   -0.31%     
==========================================
  Files        1212     1257      +45     
  Lines      107414   112767    +5353     
==========================================
+ Hits       102920   107704    +4784     
- Misses       4494     5063     +569     
Impacted Files Coverage Δ
...ests/golden_kitchen_sink_logging_decorator_test.cc 99.27% <ø> (-0.05%) ⬇️
generator/internal/stub_generator.cc 100.00% <ø> (ø)
google/cloud/bigtable/admin_client.h 100.00% <ø> (ø)
google/cloud/bigtable/data_client.h 100.00% <ø> (ø)
...gtable/examples/table_admin_iam_policy_snippets.cc 96.38% <ø> (-0.09%) ⬇️
google/cloud/bigtable/instance_admin.h 100.00% <ø> (ø)
google/cloud/bigtable/instance_admin_client.h 100.00% <ø> (ø)
google/cloud/bigtable/table_admin.h 85.48% <ø> (+1.27%) ⬆️
...igtable/tests/admin_iam_policy_integration_test.cc 97.43% <ø> (+6.32%) ⬆️
google/cloud/bigtable/version.h 100.00% <ø> (ø)
... and 874 more

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 0bb757e...7d43e8c. Read the comment docs.

@coryan coryan marked this pull request as ready for review June 16, 2021 00:32
@coryan coryan requested a review from a team June 16, 2021 00:32
@coryan coryan merged commit 079c926 into googleapis:main Jun 16, 2021
@coryan coryan deleted the test-storage-upload-errors-prevent-finalization branch June 16, 2021 09:52
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 Cloud Storage API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Streaming uploads with unrecoverable PUT errors should not be finalized

4 participants