Skip to content

fix(service): Retry GCS multipart initiate and complete#566

Draft
lcian wants to merge 3 commits into
mainfrom
fix/retry-gcs-multipart-init-complete
Draft

fix(service): Retry GCS multipart initiate and complete#566
lcian wants to merge 3 commits into
mainfrom
fix/retry-gcs-multipart-init-complete

Conversation

@lcian

@lcian lcian commented Jul 21, 2026

Copy link
Copy Markdown
Member

GCS multipart initiate and complete (plus list/abort) now reuse the existing internal request retry helper, so transient GCS 500/transport failures are retried in-process instead of failing the client on the first blip.

upload_part is intentionally left without retries because the part body is a one-shot stream and is not buffered. Complete is still fine under the same policy: retryable statuses are 408/429/5xx and transport errors; if an earlier attempt already assembled the object, a later retry surfaces HTTP 404 NoSuchUpload, which is not treated as retryable.

Wrap initiate, list, abort, and complete in the existing GCS request
retry helper so transient 5xx/transport failures are absorbed internally.
Leave put-part unretried because the body is streamed and not buffered.
@lcian

This comment has been minimized.

@codecov

This comment has been minimized.

GcsBackend::with_retry is private, so the intra-doc link failed rustdoc
with -Dwarnings in Lint and docs CI jobs.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit c0841bb. Configure here.

Comment thread objectstore-service/src/backend/gcs.rs
After a successful abort whose response is lost, retry DELETE can get
404 NoSuchUpload. Treat that as success, matching delete_object.
@lcian

lcian commented Jul 21, 2026

Copy link
Copy Markdown
Member Author

bugbot run
@sentry review

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 033741c. Configure here.

Comment thread objectstore-service/src/backend/gcs.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant