-
Notifications
You must be signed in to change notification settings - Fork 4.6k
internal/xds: change xds_resolver to use dependency manager #8711
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
eshitachandwani
wants to merge
5
commits into
grpc:master
Choose a base branch
from
eshitachandwani:final_xds_resolver
base: master
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.
+61
−326
Open
Changes from 2 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b866b9c
change xds_resolver to use dependency manager
eshitachandwani 84a9733
callbackserializer
eshitachandwani a27125f
changes
eshitachandwani 0719ab0
Merge remote-tracking branch 'upstream/master' into final_xds_resolver
eshitachandwani 3f87474
add s to the test
eshitachandwani 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 was deleted.
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.
Are you fixing a bug in the existing code here? If so, did you get a chance to check the PR where this was added to see if there was in fact a reason for calling the watch callback outside of the serializer here?
Also, while you are here, it might be worth updating the docstring of this method and the
ResourceWatcherinterface (there is no mention of the serialization guarantees that are provided by the xDS client when calling methods on this interface). It says the watch will fail if the resource type implementation does not exist. But what does failing a watch mean? Also, it does not say anything about the case where the authority in the resource name is not found in the configuration (also, it should not say bootstrpa, as this is the generic xDS client, and bootstrap is a gRPC xDS client concept). You could even do it as a separate PR (both the bug fix and the fixes to the docstring).