FULL PRODUCT VERSION :
java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) Client VM (build 25.11-b03, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux 3.2.0-4-686-pae #1 SMP Debian 3.2.46-1 i686 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
Set dns caching for negative dns lookup in java.security file
networkaddress.cache.negative.ttl=60
Do some dns lookup via InetAddress.getAllByName("host")
which results in UnknownHostException.
Immediately move system time one hour back (before cached entry expires).
If host becomes available after short time UnknownHostException still occurrs because dns lookup is not performed until one hour passes.
REPRODUCIBILITY :
This bug can be reproduced always.
java version "1.8.0_11"
Java(TM) SE Runtime Environment (build 1.8.0_11-b12)
Java HotSpot(TM) Client VM (build 25.11-b03, mixed mode)
ADDITIONAL OS VERSION INFORMATION :
Linux 3.2.0-4-686-pae #1 SMP Debian 3.2.46-1 i686 GNU/Linux
A DESCRIPTION OF THE PROBLEM :
Set dns caching for negative dns lookup in java.security file
networkaddress.cache.negative.ttl=60
Do some dns lookup via InetAddress.getAllByName("host")
which results in UnknownHostException.
Immediately move system time one hour back (before cached entry expires).
If host becomes available after short time UnknownHostException still occurrs because dns lookup is not performed until one hour passes.
REPRODUCIBILITY :
This bug can be reproduced always.
- duplicates
-
JDK-7186258 InetAddress$Cache should replace currentTimeMillis with nanoTime for more precise and accurate
-
- Closed
-