Hi Alan, In our production environment, the content of /etc/resolv.conf may be modified because of some reason, and we found that JVM can't know it when it running. There are some ways to fix this problem, one way is Adding -Dsun.net.spi.nameservice.provider.1=dns,sun to enable sun.net.dns.ResolverConfigurationImpl, but the TIMEOUT value is too long for us, so we hope to use a system property to control it. Another way is to upgrade the version of Linux or Glibc, but it's hard to promote for us.
Thanks, Denghui Dong ------------------------------------------------------------------ From:Alan Bateman <alan.bate...@oracle.com> Send Time:2020年1月24日(星期五) 16:45 To:董登辉(卓昂) <denghui....@alibaba-inc.com>; net-dev <net-dev@openjdk.java.net> Subject:Re: RFR (XS) 8237806: Convert TIMEOUT of sun.net.dns.ResolverConfigurationImpl into property On 24/01/2020 08:36, Denghui Dong wrote: Hi team, Could I have a review of a small change that converts TIMEOUT of ResolverConfigurationImpl into property. Summary: The value of TIMEOUT of ResolverConfigurationImpl was hardcoded, it's useful to use a system property to specify the value of it. Bug: https://bugs.openjdk.java.net/browse/JDK-8237806 CSR: https://bugs.openjdk.java.net/browse/JDK-8237815 Webrev: http://cr.openjdk.java.net/~ddong/8237806/webrev.00/ Can you put more context on this? ResolverConfiguration class is a JDK internal API that I added a long time for use by the JNDI-DNS provider. Is the context the JNDI DNS provider or something else? -Alan