Skip to content
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

Add experimental system properties for Netty DnsNameResolver #3073

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

idelpivnitskiy
Copy link
Member

Motivation:

Netty recently introduced 2 more DNS config options that help to workaround known infrastructure issues:

  • TCP fallback on timeout;
  • DnsNameResolverChannelStrategy;

Modifications:

Add 2 new experimental system properties:

  1. io.servicetalk.dns.discovery.netty.experimental.tcpFallbackOnTimeout
  2. io.servicetalk.dns.discovery.netty.experimental.datagramChannelStrategy

Result:

We can test these new features without commiting to them in our public API.

Motivation:

Netty recently introduced 2 more DNS config options that help to
workaround known infrastructure issues:
- TCP fallback on timeout;
- `DnsNameResolverChannelStrategy`;

Modifications:

Add 2 new experimental system properties:
1. `io.servicetalk.dns.discovery.netty.experimental.tcpFallbackOnTimeout`
2. `io.servicetalk.dns.discovery.netty.experimental.datagramChannelStrategy`

Result:

We can test these new features without commiting to them in our public
API.
Copy link
Contributor

@daschl daschl left a comment

Choose a reason for hiding this comment

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

LGTM - I assume this is validated manually that the properties are applied correctly?

@idelpivnitskiy
Copy link
Member Author

I validated that they are applied when required Netty version is in classpath. There is no easy way to validate that nothing breaks if older Netty version is in classpath. However, this use-case is rare and we can fix if there is a reported problem.

@idelpivnitskiy idelpivnitskiy merged commit 6613bd5 into apple:main Oct 4, 2024
11 checks passed
@idelpivnitskiy idelpivnitskiy deleted the dns-props branch October 4, 2024 09:11
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.

3 participants