Skip to content

api: use <scheme,provider> map in nameResoverRegistry - #8323

Merged
YifeiZhuang merged 5 commits into
grpc:masterfrom
YifeiZhuang:zivy/resolver_factory
Jul 21, 2021
Merged

api: use <scheme,provider> map in nameResoverRegistry#8323
YifeiZhuang merged 5 commits into
grpc:masterfrom
YifeiZhuang:zivy/resolver_factory

Conversation

@YifeiZhuang

Copy link
Copy Markdown
Member

Part of #7133.
It makes scheme matching more explicit in name resolver API. It slightly changed the existing behaviour because in this PR we pick effective providers early/when refreshing.
But it should not change effectiveness of e.g. SecretGrpclbNameResolverProvider.

@YifeiZhuang
YifeiZhuang requested a review from ejona86 July 13, 2021 17:28
Comment thread xds/src/test/java/io/grpc/xds/XdsSdsClientServerTest.java
Comment thread xds/src/test/java/io/grpc/xds/XdsSdsClientServerTest.java
Comment thread api/src/main/java/io/grpc/NameResolverRegistry.java Outdated
Comment thread api/src/main/java/io/grpc/NameResolverRegistry.java Outdated
Comment thread api/src/main/java/io/grpc/NameResolverRegistry.java
@YifeiZhuang
YifeiZhuang requested a review from ejona86 July 15, 2021 23:20

@ejona86 ejona86 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've audited the internal NameResolverProviders and all have a SCHEME.equals(uri.getScheme()) check, so I don't think this will break anything internally.

@YifeiZhuang
YifeiZhuang merged commit 4c1272f into grpc:master Jul 21, 2021
@YifeiZhuang
YifeiZhuang deleted the zivy/resolver_factory branch July 21, 2021 17:03
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants