aqa-tests
aqa-tests copied to clipboard
Four tests under sun/management/jdp/ get the error message `Caused by: java.lang.IllegalArgumentException: IPv6 socket cannot join IPv4 multicast group` on AIX with jdk16
sun/management/jdp/JdpDefaultsTest.java.JdpDefaultsTest sun/management/jdp/JdpJmxRemoteDynamicPortTest.java sun/management/jdp/JdpOffTest.java.JdpOffTest sun/management/jdp/JdpSpecificAddressTest.java.JdpSpecificAddressTest
Exception in thread "main" java.net.SocketException: joinGroup failed
at java.base/sun.nio.ch.DatagramSocketAdaptor.joinGroup(DatagramSocketAdaptor.java:482)
at java.base/java.net.MulticastSocket.joinGroup(MulticastSocket.java:329)
at ClientConnection.connectWithTimeout(ClientConnection.java:58)
at JdpTestCase.run(JdpTestCase.java:67)
at JdpJmxRemoteDynamicPortTestCase.main(JdpJmxRemoteDynamicPortTestCase.java:103)
Caused by: java.lang.IllegalArgumentException: IPv6 socket cannot join IPv4 multicast group
at java.base/sun.nio.ch.DatagramChannelImpl.innerJoin(DatagramChannelImpl.java:1466)
at java.base/sun.nio.ch.DatagramChannelImpl.join(DatagramChannelImpl.java:1551)
at java.base/sun.nio.ch.DatagramSocketAdaptor.joinGroup(DatagramSocketAdaptor.java:532)
at java.base/sun.nio.ch.DatagramSocketAdaptor.joinGroup(DatagramSocketAdaptor.java:479)
... 4 more
]
exitValue = 1
Related https://github.com/adoptium/adoptium/issues/63
What happens when you add -Djava.net.preferIPv4Stack=true as an option? (Are the tests smart enough to skip portions specific to the Multicast config on the machine? I have not looked at the test code, there are a different set of multicast tests that benefit from using this option on AIX).
Yes, with change the test itself https://github.com/adoptium/jdk16u/compare/master...sophia-guo:ipv6?expand=1, test passed.
https://ci.adoptopenjdk.net/view/work-in-progress/job/grinder_sandbox_new/265/
All four tests implementation are similar. Need to update test itself, which means we need someone to create the issue in JBS and update it if we'd like them to run on AIX.