-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Add retriable_serving_statuses to grpc health check to support retrying NOT_SERVING #43331
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
Open
fishcakez
wants to merge
23
commits into
envoyproxy:main
Choose a base branch
from
fishcakez:grpc-hc-retry-not-serving
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 6 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
baf10f5
Add retriable_serving_statuses to grpc health check to retry NOT_SERVING
fishcakez 204dbe0
format
fishcakez ba4e888
Handle buf.yaml linting by remvoing grpc's /src/proto prefix
fishcakez e6a1d23
Fix src/proto imports in grpc
fishcakez e2e136d
Fix grpc patch indent
fishcakez 9485a03
Fix imports for health.upb.h
fishcakez 1c4e7ca
Revert "Fix imports for health.upb.h"
fishcakez 6624d41
Revert "Fix grpc patch indent"
fishcakez 5ce7cbb
Revert "Fix src/proto imports in grpc"
fishcakez 22695dd
Revert "Handle buf.yaml linting by remvoing grpc's /src/proto prefix"
fishcakez 69f4ca8
Ignore health_check.proto
fishcakez 5def051
Replace pgv patch with envoy load time check
fishcakez ddf495a
Fix whitespace
fishcakez 7217caa
Revert "Revert "Handle buf.yaml linting by remvoing grpc's /src/proto…
fishcakez eaca650
Revert "Revert "Fix src/proto imports in grpc""
fishcakez ae83feb
Revert "Revert "Fix grpc patch indent""
fishcakez dc79d15
Revert "Revert "Fix imports for health.upb.h""
fishcakez 45098c5
Revert "Ignore health_check.proto"
fishcakez 616acc7
Revert "Revert "Revert "Fix imports for health.upb.h"""
fishcakez 8ee8bf3
Revert "Revert "Revert "Fix grpc patch indent"""
fishcakez b3f7f4f
Revert "Revert "Revert "Fix src/proto imports in grpc"""
fishcakez dda7e30
Revert "Revert "Revert "Handle buf.yaml linting by remvoing grpc's /s…
fishcakez 3f23d72
Vendor health.proto
fishcakez 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
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.
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.
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.
this is a lot of patching - is it all necessary - or an artifact of your linter or somesuch
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.
This patch is taken directly from bufbuild/protoc-gen-validate#1360 (skipping tests added in the local patch). The larger change to this file is due to
gofmtwhere it aligns all fields based on the longest name.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.
We could avoid patching pgv if we skip
uniqueandnot_invalidation of the repeated enum until this patch is landed and released in pgv.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.
ok - we are about to drop pgv - so im less concerned about that one really
with the grpc patch - seems strange that their source != buf registration
im wondering if we can either upstream that fun - or if there is a pattern that avoids this
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.
this might help https://github.com/grpc/grpc-proto
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.
I don't have a preference between the patch or ignoring buf linting on this specific xDS proto file. Either one seems like a reasonable temporary measure that we can get rid of once the tech debt is cleaned up on the gRPC side.
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.
I have reverted the patches, and move the proto validation to be explicit to the config loading in envoy and updated the
api/buf.yamlto not lint thehealth_check.protofile. This makes the change as simple as possible. Can I get another look/review please?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.
Unfortunately the
api/buf.yamlchange did not work to ignore thehealth_check.proto. It's required to ignore whole directory, and that would mean ignoringenvoy/config/core/v3/, which would then of course make the buf linting not work as other protos import those. I could not find a way to ignore a single file.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.
Therefore I've reverted some of the reverts, and brought back the grpc patch to align it on the grpc-proto path.
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.
Hi @markdroth @phlax are you able to take a second look on the grpc/dependency handling please.