Skip to content

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

Merged
merged 5 commits into from
Mar 6, 2025

Conversation

shivaspeaks
Copy link
Member

fixes #11926

@shivaspeaks shivaspeaks requested review from sergiitk and ejona86 March 3, 2025 15:39
@shivaspeaks shivaspeaks requested a review from sergiitk March 4, 2025 14:18
@@ -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) {
Copy link
Member

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.

@shivaspeaks shivaspeaks requested review from ejona86 and sergiitk March 5, 2025 18:18
@@ -811,8 +825,7 @@ filterChainLessSpecific, randomConfig("no-match")),
}

@Test
public void sourcePrefixRange_2Matchers_expectException()
throws UnknownHostException {
public void sourcePrefixRange_2Matchers_expectException() throws IllegalArgumentException {
Copy link
Member

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.

@shivaspeaks shivaspeaks merged commit 602aece into grpc:master Mar 6, 2025
15 of 16 checks passed
@shivaspeaks shivaspeaks deleted the avoid_dns_lookup_unnecessarily branch March 6, 2025 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

xds: xDS server - unnecessary dns lookup (blocking) when parsing FilterChainMatch address prefixes?
3 participants