Skip to content

Conversation

@shivaspeaks
Copy link
Member

fixes #11926

@shivaspeaks shivaspeaks requested review from ejona86 and sergiitk March 3, 2025 15:39
@shivaspeaks shivaspeaks requested a review from sergiitk March 4, 2025 14:18
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
@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
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 5, 2025
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.

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

3 participants