Hi all,

The test log from java/net/InetAddress/ptr/Lookup.java shows that 
`lookupWithIPv4Prefer` and `reverseWithIPv4Prefer` both print 
"192.0.43.7:192.0.43.7" when this test fails intermittently. And the output 
should be "192.0.43.7:icann.org" when this test run passed. The intermittent 
fails seems that `InetAddress.getHostFromNameService` can not resolve the fully 
qualified domain name for the given IP address, and it return the textual 
representation of the IP address, especially the network in unstable.

This intermittemt failure is not trigger by a JVM bug, so this PR throw 
jtreg.SkippedException rather than report test failure. Change has been 
verified locally both on linux-x64 and linux-aarch64.

-------------

Commit messages:
 - 8380124: Test java/net/InetAddress/ptr/Lookup.java fails intermittently due 
to reverse lookup failed

Changes: https://git.openjdk.org/jdk/pull/30259/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=30259&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8380124
  Stats: 8 lines in 1 file changed: 7 ins; 0 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/30259.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/30259/head:pull/30259

PR: https://git.openjdk.org/jdk/pull/30259

Reply via email to