-
Notifications
You must be signed in to change notification settings - Fork 5.3k
gRPC retries, assuming gRPC status code is in the returned headers #1067
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
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
66f18e9
gRPC retries, assuming status code in returned headers
alyssawilk 9a3f9a6
gRPC retries, now with (partial) documentation
alyssawilk 11281eb
minor changes
alyssawilk 05c6dba
allowing gRPC retries to be configured using current router configs, …
alyssawilk 8fb9bbe
gRPC retries, assuming status code in returned headers
alyssawilk e46dbc1
gRPC retries, now with (partial) documentation
alyssawilk 7ed0e35
minor changes
alyssawilk 2775929
allowing gRPC retries to be configured using current router configs, …
alyssawilk 9fec1d8
doc fix and clang_cleanup
alyssawilk 6f613d8
clang_cleanup
alyssawilk 872fad0
clang_cleanup
alyssawilk a5aac27
Merge branch 'grpc' of github.com:alyssawilk/envoy into grpc
alyssawilk 0130379
gRPC retries, assuming status code in returned headers
alyssawilk a4e13ff
gRPC retries, now with (partial) documentation
alyssawilk ab6c25a
minor changes
alyssawilk bc4f8de
allowing gRPC retries to be configured using current router configs, …
alyssawilk 65566c9
gRPC retries, assuming status code in returned headers
alyssawilk e5e7f53
gRPC retries, now with (partial) documentation
alyssawilk 39c9606
minor changes
alyssawilk f0cfd1c
allowing gRPC retries to be configured using current router configs, …
alyssawilk b0643f2
doc fix and clang_cleanup
alyssawilk d8a7a28
trying to come up with clean diffs
alyssawilk 3d33288
reusing getGrpcStatus in trailer validation
alyssawilk bbba9a8
Making gRPC status errors negative, reusing getGrpcStatus in checkFor…
alyssawilk 3dec86d
Merge remote-tracking branch 'refs/remotes/origin/grpc' into grpc
alyssawilk 1dcc41e
Merge remote-tracking branch 'upstream/master' into grpc
alyssawilk 36aae46
Making getGrpcStatus optional
alyssawilk 5df0a7e
allowing all gRPC codes
alyssawilk 6692aef
hopefully clarifying docs
alyssawilk File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
| #pragma once | ||
|
|
||
| namespace Envoy { | ||
| namespace Grpc { | ||
|
|
||
| class Status { | ||
| public: | ||
| enum GrpcStatus { | ||
| // The RPC completed successfully. | ||
| Ok = 0, | ||
| // The RPC was canceled. | ||
| Canceled = 1, | ||
| // Some unknown error occurred. | ||
| Unknown = 2, | ||
| // An argument to the RPC was invalid. | ||
| InvalidArgument = 3, | ||
| // The deadline for the RPC expired before the RPC completed. | ||
| DeadlineExceeded = 4, | ||
| // Some resource for the RPC was not found. | ||
| NotFound = 5, | ||
| // A resource the RPC attempted to create already exists. | ||
| AlreadyExists = 6, | ||
| // Permission was denied for the RPC. | ||
| PermissionDenied = 7, | ||
| // Some resource is exhausted, resulting in RPC failure. | ||
| ResourceExhausted = 8, | ||
| // Some precondition for the RPC failed. | ||
| FailedPrecondition = 9, | ||
| // The RPC was aborted. | ||
| Aborted = 10, | ||
| // Some operation was requested outside of a legal range. | ||
| OutOfRange = 11, | ||
| // The RPC requested was not implemented. | ||
| Unimplemented = 12, | ||
| // Some internal error occurred. | ||
| Internal = 13, | ||
| // The RPC endpoint is current unavailable. | ||
| Unavailable = 14, | ||
| // There was some data loss resulting in RPC failure. | ||
| DataLoss = 15, | ||
| // The RPC does not have required credentials for the RPC to succeed. | ||
| Unauthenticated = 16, | ||
|
|
||
| // This is a non-GRPC error code, indicating the status code in gRPC headers | ||
| // was invalid. | ||
| InvalidCode = -1, | ||
| }; | ||
| }; | ||
|
|
||
| } // Grpc | ||
| } // Envoy |
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems a bit odd to me that in the route, we stick HTTP/gRPC retry policies into a single field, but we have 2 different headers. I don't really feel strongly about this, but thought I would mention it in case anyone else has any strong opinions.