-
-
Notifications
You must be signed in to change notification settings - Fork 16k
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
Redisson 3.15.0, netty 4.59, still getting io.netty.resolver.dns.DnsResolveContext$SearchDomainUnknownHostException error once a day #11044
Comments
|
Not a solution but... have you tried making it into a fully qualified domain? e.g. xx.yyy.zzz.usw2.cache.amazonaws.com. We are testing with that now |
|
I tried but it don't work : |
|
I've had luck with fully qualified domains. but I am also looking at implementing this: There is also a setting "single-request-reopen" which some people report success with. |
|
I am also facing the same problem. Has anything been resolved since then? I need help. :( |
|
I also encountered the same problem, not only on eks, but also on the local self-built k8s, only the redis domain name can not be resolved, no other domain names, I also feel very strange |
This is what happen when I capture packet in our cluster Our kube-dns has some problem (not solving yet) |
|
any update ? |
Expected behavior
I don't expect to see any DNS error on the AWS elasticache node name
Actual behavior
We seems to have once a day an ERROR exception : io.netty.resolver.dns.DnsResolveContext$SearchDomainUnknownHostException: Search domain query failed. Original hostname: 'xxx.yyy.zzz.usw2.cache.amazonaws.com' failed to resolve 'xxx.yyy.zzz.usw2.cache.amazonaws.com
...
Caused by: io.netty.resolver.dns.DnsNameResolverTimeoutException: [/:53] query via UDP timed out after 2000 milliseconds (no stack trace available)
Our application run in a container, in an basic EC2 instance running AWS Linux 2 in a AWS VPC.
The DNS config is very basic, getting the DNS IP from AWS DHCP.
options timeout:2 attempts:5
; generated by /usr/sbin/dhclient-script
search us-west-2.compute.internal
nameserver
we tried enforcing IPV4 for DNS Resolution (following a redisson issue comment)
public DnsAddressResolverGroup create(Class<? extends DatagramChannel> channelType,
DnsServerAddressStreamProvider nameServerProvider) {
DnsAddressResolverGroup group = new DnsAddressResolverGroup(new DnsNameResolverBuilder()
.channelType(NioDatagramChannel.class)
.nameServerProvider(DnsServerAddressStreamProviders.platformDefault())
.resolvedAddressTypes(ResolvedAddressTypes.IPV4_ONLY));
return group;
}
But still got this error time to time.
The hostname we tried to resolve is a AWS elasticache redis provided hostname, not something change often.
Our redis cache has 3 nodes, the SearchDomainUnknownHostException fail randomly on anyone of the three nodes.
Steps to reproduce
Can't find a pattern, the error seems to pop in the log once a day or every two days, even with very low low activity.
Minimal yet complete reproducer code (or URL to code)
Netty version
4.1.59-Final
JVM version (e.g.
java -version)openjdk 11.0.10 2021-01-19 LTS
OpenJDK Runtime Environment Zulu11.45+28-SA (build 11.0.10+9-LTS)
OpenJDK 64-Bit Server VM Zulu11.45+28-SA (build 11.0.10+9-LTS, mixed mode)
OS version (e.g.
uname -a)Linux xxx.amzn2.x86_64 #1 SMP Fri Oct 30 19:19:33 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
App is running in a docker container/AWS ECS
The text was updated successfully, but these errors were encountered: