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

feat(storage): add debugging headers to ObjectWriteStream #9580

Merged

Conversation

coryan
Copy link
Contributor

@coryan coryan commented Jul 28, 2022

Make it easier to troubleshoot problems with resumable uploads (aka
Client::WriteObject()) by capturing the headers of the last request.
We do not want to capture the headers for all the requests because there
can be an unbounded number of requests, and therefore all the headers
can consume arbitrary amounts of memory.


This change is Reviewable

Make it easier to troubleshoot problems with resumable uploads (aka
`Client::WriteObject()`) by capturing the headers of the last request.
We do not want to capture the headers for all the requests because there
can be an unbounded number of requests, and therefore all the headers
can consume arbitrary amounts of memory.
@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Jul 28, 2022
@google-cloud-cpp-bot
Copy link
Collaborator

Google Cloud Build Logs
For commit: a5274c490caeabaf54e616db40e206948e6b9ce5

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

@codecov
Copy link

codecov bot commented Jul 28, 2022

Codecov Report

Merging #9580 (a5274c4) into main (c58299d) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main    #9580   +/-   ##
=======================================
  Coverage   94.36%   94.36%           
=======================================
  Files        1491     1491           
  Lines      137591   137586    -5     
=======================================
- Hits       129839   129836    -3     
+ Misses       7752     7750    -2     
Impacted Files Coverage Δ
...le/cloud/storage/internal/object_write_streambuf.h 100.00% <ø> (ø)
...ud/storage/examples/storage_client_mock_samples.cc 100.00% <100.00%> (ø)
google/cloud/storage/internal/curl_request.cc 100.00% <100.00%> (ø)
google/cloud/storage/internal/grpc_client.cc 99.19% <100.00%> (+<0.01%) ⬆️
...oud/storage/internal/grpc_object_request_parser.cc 97.61% <100.00%> (+<0.01%) ⬆️
...torage/internal/grpc_object_request_parser_test.cc 98.81% <100.00%> (+<0.01%) ⬆️
google/cloud/storage/internal/object_requests.cc 97.03% <100.00%> (+<0.01%) ⬆️
google/cloud/storage/internal/object_requests.h 97.53% <100.00%> (+0.23%) ⬆️
...gle/cloud/storage/internal/object_requests_test.cc 100.00% <100.00%> (ø)
...e/cloud/storage/internal/object_write_streambuf.cc 100.00% <100.00%> (ø)
... and 13 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 c58299d...a5274c4. Read the comment docs.

@coryan coryan marked this pull request as ready for review July 28, 2022 15:27
@coryan coryan requested a review from a team as a code owner July 28, 2022 15:27
Copy link
Member

@scotthart scotthart left a comment

Choose a reason for hiding this comment

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

Reviewed 13 of 13 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @coryan)

@coryan coryan merged commit 215a1f3 into googleapis:main Jul 28, 2022
@coryan coryan deleted the test-storage-cleanup-benchmark-output-pr2 branch July 28, 2022 15:57
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.

3 participants