Skip to content
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(storage): error message for resumable uploads #9855

Merged
merged 2 commits into from
Sep 15, 2022

Conversation

coryan
Copy link
Contributor

@coryan coryan commented Sep 15, 2022

One of the error conditions is actually a rare, but unavoidable, problem when resuming uploads. Improve the error message to clarify this situation.

Fixes #9750


This change is Reviewable

One of the error conditions is actually a rare, but unavoidable,
problem when resuming uploads.  Improve the error message to clarify
this situation.
@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Sep 15, 2022
@coryan
Copy link
Contributor Author

coryan commented Sep 15, 2022

/fyi @garlicnation

@google-cloud-cpp-bot
Copy link
Collaborator

Google Cloud Build Logs
For commit: 4d1e24e29039c0a87814615c82d8dde37486fceb

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

@codecov
Copy link

codecov bot commented Sep 15, 2022

Codecov Report

Base: 94.24% // Head: 94.24% // Decreases project coverage by -0.00% ⚠️

Coverage data is based on head (766ff6a) compared to base (8c3c510).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9855      +/-   ##
==========================================
- Coverage   94.24%   94.24%   -0.01%     
==========================================
  Files        1495     1495              
  Lines      139834   139834              
==========================================
- Hits       131785   131782       -3     
- Misses       8049     8052       +3     
Impacted Files Coverage Δ
google/cloud/storage/internal/retry_client.cc 99.68% <100.00%> (ø)
google/cloud/storage/internal/retry_client_test.cc 100.00% <100.00%> (ø)
...bigtable/examples/bigtable_hello_instance_admin.cc 81.00% <0.00%> (-2.00%) ⬇️
...cloud/pubsub/internal/subscription_session_test.cc 97.98% <0.00%> (-0.68%) ⬇️
...le/cloud/storage/internal/curl_download_request.cc 89.29% <0.00%> (+1.00%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@coryan coryan marked this pull request as ready for review September 15, 2022 16:17
@coryan coryan requested a review from a team as a code owner September 15, 2022 16:17
<< expected_committed_size << " are expected be."
<< " Most likely your application resumed an upload, and the client"
<< " library queried the service to find the current persisted bytes."
<< " In some cases, the service is still writing in data in the"
Copy link
Member

@dbolduc dbolduc Sep 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

optional: s/in data/data/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed and some rewording.

<< " Then the next write reports a much higher number of bytes"
<< " persisted than expected. It is not possible for the client library"
<< " to recover from this situation. The application needs to resume the"
<< " upload."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add a \n ? Or is that a bad idea in error messages?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I want to avoid those in error messages.

<< " upload."
<< " This could also be caused by multiple instances of a distributed"
<< " application trying to use the same resumable upload, this is a bug"
<< " in the application."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same \n question

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ditto

@google-cloud-cpp-bot
Copy link
Collaborator

Google Cloud Build Logs
For commit: 766ff6ad203f082f5f6f10b6d137b021243505b2

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

@coryan coryan enabled auto-merge (squash) September 15, 2022 16:31
@coryan coryan merged commit f614116 into googleapis:main Sep 15, 2022
@coryan coryan deleted the fix-storage-improve-error-message branch September 15, 2022 17:40
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error in validatecommittedsize
3 participants