On Wed, 11 Nov 2026 13:49:15 GMT, Sendao Yan <[email protected]> wrote:
>> 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. >> >> --------- >> - [x] I confirm that I make this contribution in accordance with the >> [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). > > Sendao Yan has updated the pull request with a new target base due to a merge > or a rebase. The incremental webrev excludes the unrelated changes brought in > by the merge/rebase. The pull request contains seven additional commits since > the last revision: > > - Merge branch 'openjdk:master' into jbs8380124 > - Merge branch 'openjdk:master' into jbs8380124 > - Merge branch 'openjdk:master' into jbs8380124 > - Merge branch 'openjdk:master' into jbs8380124 > - Merge branch 'openjdk:master' into jbs8380124 > - Merge branch 'openjdk:master' into jbs8380124 > - 8380124: Test java/net/InetAddress/ptr/Lookup.java fails intermittently > due to reverse lookup failed test/jdk/java/net/InetAddress/ptr/Lookup.java line 115: > 113: strs = tmp.split(":"); > 114: addr = strs[0]; > 115: ipv4Reversed = strs[1]; Some test runs are failing with ArrayIndexOutOfBounds when accessing the second element of strs[]. I guess this can happen if the sub process returns a String like "192.0.43.7:" I don't fully understand the reason, but it might be better to move this reference to after the new check. Maybe the same applies to the code that sets ipv4name as well. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/30259#discussion_r4562836727
