lhotari opened a new pull request, #4586:
URL: https://github.com/apache/bookkeeper/pull/4586

   ### Motivation
   
   Some tests fail due to DNS timeouts as explained in #4585.
   Some of these failures might be caused by the default negative DNS cache 
that is 10 seconds by default or by the default positive DNS cache that is 30 
seconds by default. It's better to set reduce dns cache settings to 1 second 
for tests.
   
   ### Changes
   
   - pass `-Dsun.net.inetaddr.ttl=1 -Dsun.net.inetaddr.negative.ttl=1` in test 
JVM arguments to configure the DNS cache settings
   - For OpenJDK, it's not possible to override settings in 
`$JAVA_HOME/conf/security/java.security` with System properties, see 
https://github.com/openjdk/jdk11u/blob/master/src/java.base/share/classes/sun/net/InetAddressCachePolicy.java
 . By default there's a negative TTL setting set to 10 seconds.
     - apply respective settings to `$JAVA_HOME/conf/security/java.security` in 
CI


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to