Skip to content

fix(storage): add retry logic for "http2: client connection lost"#14385

Merged
cpriti-os merged 3 commits into
mainfrom
fix-http2-client-connection-lost-retry-5101149101639042241
Apr 8, 2026
Merged

fix(storage): add retry logic for "http2: client connection lost"#14385
cpriti-os merged 3 commits into
mainfrom
fix-http2-client-connection-lost-retry-5101149101639042241

Conversation

@cpriti-os

Copy link
Copy Markdown
Contributor

This adds http2: client connection lost to the list of retriable errors. This matches similar retry logic added in bigquery. Tests have been updated to check for this new retry case, including wrapped errors.


PR created automatically by Jules for task 5101149101639042241 started by @cpriti-os

Co-authored-by: cpriti-os <202586561+cpriti-os@users.noreply.github.com>
@cpriti-os cpriti-os requested review from a team as code owners April 8, 2026 05:17
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@cpriti-os cpriti-os requested a review from a team as a code owner April 8, 2026 05:17
@product-auto-label product-auto-label Bot added the api: storage Issues related to the Cloud Storage API. label Apr 8, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the ShouldRetry function to include "http2: client connection lost" as a retryable error and adds corresponding test cases for both direct and wrapped errors. The review feedback suggests making the new error string check nil-safe to prevent potential panics and adding a test case to verify that nil errors are handled gracefully.

Comment thread storage/invoke.go Outdated
Comment thread storage/invoke_test.go
@cpriti-os cpriti-os changed the title storage: add retry logic for "http2: client connection lost" fix(storage): add retry logic for "http2: client connection lost" Apr 8, 2026
google-labs-jules Bot and others added 2 commits April 8, 2026 05:27
Co-authored-by: cpriti-os <202586561+cpriti-os@users.noreply.github.com>
Co-authored-by: cpriti-os <202586561+cpriti-os@users.noreply.github.com>
@cpriti-os cpriti-os requested a review from krishnamd-jkp April 8, 2026 05:50
@cpriti-os cpriti-os merged commit df22e9e into main Apr 8, 2026
11 checks passed
@cpriti-os cpriti-os deleted the fix-http2-client-connection-lost-retry-5101149101639042241 branch April 8, 2026 06:01
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.

2 participants