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): ensure streams arent copied by default #7495

Merged
merged 2 commits into from
Jul 3, 2024

Conversation

bshaffer
Copy link
Contributor

@bshaffer bshaffer commented Jul 2, 2024

Attempts to address #7473 by not copying streams by default. This was copying the full streams even when the stream was only supposed to be opened.

The new code copies the stream only if retries took place. Admittedly this also isn't optimal behavior - it would be better to return a new stream which prepends any previous streams (without seeking through the new stream). We should investigate the Stream classes being used to see if it's possible to do something like this.

@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Jul 2, 2024
@bshaffer bshaffer marked this pull request as ready for review July 2, 2024 15:32
@bshaffer bshaffer requested review from a team as code owners July 2, 2024 15:32
@bshaffer bshaffer added the next release PRs to be included in the next release label Jul 2, 2024
@bshaffer bshaffer merged commit 33ce1b1 into main Jul 3, 2024
24 checks passed
@bshaffer bshaffer deleted the fix-storage-streamwrapper branch July 3, 2024 22:24
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. next release PRs to be included in the next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants