Skip to content

fix(storage): persist resource in append retry#13128

Merged
tritone merged 3 commits intogoogleapis:release-storage-1.56.3from
tritone:release-storage-1.56.3
Oct 14, 2025
Merged

fix(storage): persist resource in append retry#13128
tritone merged 3 commits intogoogleapis:release-storage-1.56.3from
tritone:release-storage-1.56.3

Conversation

@tritone
Copy link
Contributor

@tritone tritone commented Oct 13, 2025

In one retry case for appendable writes, the client receives both an object resource w/ write handle as well as an error from the server. After reconnect the new stream would not keep the original object resource. This change ensures that the object is not dropped.

Also explicitly guarantee the contract that either w.Attrs() will be non-nil, or w.Close() will return a non-nil error.

I need to make a change to the emulator as well so that the testbench behavior more closely mocks the service.

In one retry case for appendable writes, the client receives
both an object resource w/ write handle as well as an error from
the server. After reconnect the new stream would not keep the
original object resource. This change ensures that the object
is not dropped.

I need to make a change to the emulator as well so that the
testbench behavior more closely mocks the service.
@tritone tritone requested a review from a team as a code owner October 13, 2025 22:32
@tritone tritone requested a review from a team October 13, 2025 22:32
@product-auto-label product-auto-label bot added the api: storage Issues related to the Cloud Storage API. label Oct 13, 2025
@tritone tritone merged commit 9ad2100 into googleapis:release-storage-1.56.3 Oct 14, 2025
45 of 187 checks passed
tritone added a commit that referenced this pull request Oct 15, 2025
🤖 I have created a release *beep* *boop*
---


##
[1.56.3](storage/v1.56.2...storage/v1.56.3)
(2025-10-14)


### Bug Fixes

* **storage:** Persist resource in append retry
([#13128](#13128))
([9ad2100](9ad2100))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
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.

4 participants