Skip to content

fix(storage): add retry support for finalize and close in AsyncAppendableObjectWriter#17733

Open
sahusneha2004 wants to merge 1 commit into
googleapis:mainfrom
sahusneha2004:fix-appendable-writer-finalize-retry
Open

fix(storage): add retry support for finalize and close in AsyncAppendableObjectWriter#17733
sahusneha2004 wants to merge 1 commit into
googleapis:mainfrom
sahusneha2004:fix-appendable-writer-finalize-retry

Conversation

@sahusneha2004

Copy link
Copy Markdown

Fixes: b/532527637

@sahusneha2004
sahusneha2004 requested a review from a team as a code owner July 16, 2026 09:19

@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 adds support for custom and default retry policies during the finalization and closing of an asynchronous appendable object writer, along with corresponding unit tests. However, the current implementation of the retry mechanism in finalize is flawed because it attempts to reuse the same gRPC stream (write_obj_stream) after an error has occurred. In production, a gRPC stream enters an errored state and closes upon failure, meaning subsequent retries on the same stream will fail immediately. To resolve this, the underlying stream must be re-established or recreated before retrying.

@sahusneha2004
sahusneha2004 force-pushed the fix-appendable-writer-finalize-retry branch from 25ddefa to 208879e Compare July 16, 2026 10:22
@sahusneha2004
sahusneha2004 force-pushed the fix-appendable-writer-finalize-retry branch from 208879e to 3366eb0 Compare July 16, 2026 10:34
@parthea
parthea requested a review from chandra-siri July 16, 2026 14:16
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.

2 participants