JDK-8226928 : [TESTBUG] test/java/net/NetworkInterface/IPv4Only.java fails intermittently on AIX
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 8u212
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: aix
  • Submitted: 2019-06-28
  • Updated: 2019-09-14
  • Resolved: 2019-07-04
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
openjdk8u232 b01Fixed
Related Reports
Relates :  
Description
The test fails with this if the native library has already been loaded on AIX.

Standard Error

java.lang.RuntimeException: NetworkInterfaceV6List failed - found v6 address 0:0:0:0:0:0:0:1%lo0
	at IPv4Only.main(IPv4Only.java:46)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.lang.Thread.run(Thread.java:819)

JavaTest Message: Test threw exception: java.lang.RuntimeException: NetworkInterfaceV6List failed - found v6 address 0:0:0:0:0:0:0:1%lo0

The tests in JDK 11+ works more reliably as it sets the system property on the command line. The JDK 11 change to the test was introduced with JDK-8049367. A selective backport seems in order.
Comments
URL: https://hg.openjdk.java.net/jdk8u/jdk8u/jdk/rev/f879433510b7 User: andrew Date: 2019-07-30 13:53:14 +0000
30-07-2019

Fix Request (OpenJDK 8u): Please approve this trivial test fix. It merely aligns to the JDK 11+ version where it's been used successfully. Reviewed by Christoph Langer and Chris Hegarty RFR: http://mail.openjdk.java.net/pipermail/jdk8u-dev/2019-June/009725.html
28-06-2019

Thanks, Daniel!
28-06-2019

FWIW LGTM! -- daniel
28-06-2019

RFR: http://mail.openjdk.java.net/pipermail/jdk8u-dev/2019-June/009725.html
28-06-2019