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
Be more strict in the NameResolver.Factory javadocs #8543
Comments
@YifeiZhuang assigned to you to address it. Looks like the user is only requesting Javadoc enhancements. CC @ejona86 |
#8323 changed the behavior at How does your |
I think this is where we are trying to get to. But I think today we were expecting there were going to be NameResolvers supporting older versions of gRPC and they would still need the scheme check. If you are okay with requiring a newer version of gRPC, then I guess you have close to the guarantee you want already. I believe the exception is |
Is your feature request related to a problem?
It's related to a problem/change of behavior of the
NameResolverRegistry
introduced in #8323Due to that change the
NameResolver
s will only be invoked if theirgetDefaultScheme()
matches the specified scheme.I previously watched for/used both the "default" scheme and an alias.
Describe the solution you'd like
Please change the javadocs to contain a hint, that the scheme used in the
newNameResolver
must be the same and only as the default scheme (or at least that no other schemes will be checked).Describe alternatives you've considered
Add a new method that assumes that the check has already been done, with the
newNameResolver
being implemented to do the checks and then invoke the new method. Later that method should be marked as final to disallow invalid behavior.The text was updated successfully, but these errors were encountered: