Repository navigation
re_grpc: consider network interruptions retryable - #1460
Closed
vlad-ivanov-name wants to merge 1 commit into
Closed
vlad-ivanov-name wants to merge 1 commit into
vlad-ivanov-name wants to merge 1 commit into
Conversation
Contributor
|
This pull request has been imported. If you are a Meta employee, you can view this in D115854815. (Because this pull request was imported automatically, there will not be any future comments.) |
Right now, intermittent network failures like these fail the build immediately: ``` Error: (Failed to make BatchReadBlobs request: code: 'The operation was cancelled', message: "operation was canceled", source: tonic::transport::Error( Transport, hyper::Error(Canceled, "connection closed")): transport error: operation was canceled: connection closed) ``` Add `Cancelled` cause to list of retryable errors.
vlad-ivanov-name
force-pushed
the
retry-cancelled-cas-reads
branch
from
August 26, 2026 12:59
dfaf732 to
8c62994
Compare
Contributor
Author
|
Rebased on master. |
Contributor
Author
|
Seems like CI breakage is unrelated to this change. Edit: linux ci passed |
8Keep
approved these changes
Aug 26, 2026
8Keep
left a comment
Contributor
There was a problem hiding this comment.
Review automatically exported from Phabricator review in Meta.
Contributor
|
This pull request has been merged in 3a643c7. |
arianvp
pushed a commit
to arianvp/buck2
that referenced
this pull request
Oct 14, 2026
This reverts commit 3a643c7, which made `retry` treat CANCELLED as transient so that requests failing with hyper::Error(Canceled, "connection closed") were sent again. hyper reports that for a request that was still waiting to be sent when its connection closed, typically after a proxy recycled the connection with a GOAWAY. The patched tonic now sends such a request again by itself, on a new connection, so it no longer reaches `retry`. The nginx GOAWAY example passes without it. The client sets no deadlines, so CANCELLED can still come only from a server resetting a stream with CANCEL, or from a request whose connection closed before it was sent 16 times in a row. Those fail now instead of being retried. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NBCkPZ5aLoM73ujG2GyuHA
arianvp
pushed a commit
to arianvp/buck2
that referenced
this pull request
Oct 14, 2026
This reverts commit 3a643c7, which made `retry` treat CANCELLED as transient so that requests failing with hyper::Error(Canceled, "connection closed") were sent again. hyper reports that for a request that was still waiting to be sent when its connection closed, typically after a proxy recycled the connection with a GOAWAY. The patched tonic now sends such a request again by itself, on a new connection, so it no longer reaches `retry`. The nginx GOAWAY example passes without it. The client sets no deadlines, so CANCELLED can still come only from a server resetting a stream with CANCEL, or from a request whose connection closed before it could be sent, 16 times in a row. Those now fail instead of being retried. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NBCkPZ5aLoM73ujG2GyuHA
arianvp
pushed a commit
to arianvp/buck2
that referenced
this pull request
Oct 15, 2026
This reverts commit 3a643c7, which made `retry` treat CANCELLED as transient so that requests failing with hyper::Error(Canceled, "connection closed") were sent again. hyper reports that for a request that was still waiting to be sent when its connection closed, typically after a proxy recycled the connection with a GOAWAY. The patched tonic now sends such a request again by itself, on a new connection, so it no longer reaches `retry`. The nginx GOAWAY example passes without it. The client sets no deadlines, so CANCELLED can still come only from a server resetting a stream with CANCEL, or from a request whose connection closed before it could be sent, 16 times in a row. Those now fail instead of being retried. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NBCkPZ5aLoM73ujG2GyuHA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Right now, intermittent network failures like these fail the build immediately:
Add
Cancelledcause to list of retryable errors.