feat(experimental): Handle BidiReadObjectRedirectedError for bidi reads by Pulkit0110 · Pull Request #1600 · googleapis/python-storage · GitHub
Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

feat(experimental): Handle BidiReadObjectRedirectedError for bidi reads#1600

Merged
Pulkit0110 merged 4 commits into
googleapis:mainfrom
Pulkit0110:bidi-reads-retry3
Nov 5, 2025
Merged

feat(experimental): Handle BidiReadObjectRedirectedError for bidi reads#1600
Pulkit0110 merged 4 commits into
googleapis:mainfrom
Pulkit0110:bidi-reads-retry3

Conversation

@Pulkit0110

Copy link
Copy Markdown
Contributor

Added implementation to extract routing_token from BidiReadObjectRedirectedError.

@Pulkit0110 Pulkit0110 requested review from a team November 3, 2025 11:31
@product-auto-label product-auto-label Bot added the size: l Pull request size is large. label Nov 3, 2025
@product-auto-label product-auto-label Bot added the api: storage Issues related to the googleapis/python-storage API. label Nov 3, 2025
@gemini-code-assist

Copy link
Copy Markdown
Contributor

@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 introduces a resumption strategy for bidi reads, including handling for BidiReadObjectRedirectedError. The implementation adds a base strategy class, a concrete strategy for reads, and corresponding unit tests. My review has identified a couple of critical issues in the implementation and tests for handling the redirect error that will prevent the feature from working as intended. I've also included some suggestions to improve the design and type safety of the state management and the base strategy class, which will enhance maintainability.

Comment thread google/cloud/storage/_experimental/asyncio/retry/reads_resumption_strategy.py Outdated
Comment thread tests/unit/asyncio/retry/test_reads_resumption_strategy.py
Comment thread google/cloud/storage/_experimental/asyncio/retry/base_strategy.py
chandra-siri
chandra-siri previously approved these changes Nov 4, 2025
@parthea parthea added the owlbot:run Add this label to trigger the Owlbot post processor. label Nov 4, 2025
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Nov 4, 2025
@product-auto-label product-auto-label Bot added size: s Pull request size is small. and removed size: l Pull request size is large. labels Nov 5, 2025
@Pulkit0110 Pulkit0110 added the owlbot:run Add this label to trigger the Owlbot post processor. label Nov 5, 2025
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Nov 5, 2025
@Pulkit0110 Pulkit0110 merged commit 71b0f8a into googleapis:main Nov 5, 2025
15 checks passed
@Pulkit0110 Pulkit0110 deleted the bidi-reads-retry3 branch January 2, 2026 11:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: storage Issues related to the googleapis/python-storage API. size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants