-
Notifications
You must be signed in to change notification settings - Fork 3.9k
xds: avoid unnecessary dns lookup #11932
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
xds: avoid unnecessary dns lookup #11932
Conversation
@@ -150,9 +149,9 @@ abstract static class CidrRange { | |||
|
|||
abstract int prefixLen(); | |||
|
|||
static CidrRange create(String addressPrefix, int prefixLen) throws UnknownHostException { | |||
static CidrRange create(InetAddress addressPrefix, int prefixLen) { |
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.
Why did you change the signature? String addressPrefix
constructor seems pretty useful, given that we get a string in a proto.
@@ -811,8 +825,7 @@ filterChainLessSpecific, randomConfig("no-match")), | |||
} | |||
|
|||
@Test | |||
public void sourcePrefixRange_2Matchers_expectException() | |||
throws UnknownHostException { | |||
public void sourcePrefixRange_2Matchers_expectException() throws IllegalArgumentException { |
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.
throws IllegalArgumentException
doesn't do anything because it is a RuntimeException.
fixes #11926