JDK-8238376 : test/jdk/java/nio/channels/DatagramChannel/Loopback.java failing on multi-homed systems
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 15
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2020-02-03
  • Updated: 2021-07-05
  • Resolved: 2020-02-10
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.
JDK 15
15 b10Fixed
Related Reports
Relates :  
Description
test/jdk/java/nio/channels/DatagramChannel/Loopback.java

This test was introduced in JDK-8236184, it timeout/failed (reproducible) on linux-x64 when IP_MULTICAST_LOOP enabled.

"AgentVMThread" #252 prio=5 os_prio=0 cpu=12.40ms elapsed=1204.92s tid=0x00007f50083d4800 nid=0xeebc runnable  [0x00007f4e118d6000]
   java.lang.Thread.State: RUNNABLE
	at sun.nio.ch.DatagramChannelImpl.receive0(java.base@15-ea/Native Method)
	at sun.nio.ch.DatagramChannelImpl.receiveIntoNativeBuffer(java.base@15-ea/DatagramChannelImpl.java:746)
	at sun.nio.ch.DatagramChannelImpl.receive(java.base@15-ea/DatagramChannelImpl.java:724)
	at sun.nio.ch.DatagramChannelImpl.untrustedReceive(java.base@15-ea/DatagramChannelImpl.java:581)
	at sun.nio.ch.DatagramChannelImpl.receive(java.base@15-ea/DatagramChannelImpl.java:554)
	at Loopback.test(Loopback.java:124)
	at Loopback.main(Loopback.java:81)
...

 
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/6a82085fc61d User: alanb Date: 2020-02-10 12:58:19 +0000
10-02-2020

This is a test issue. The test joins the multicast group on one interface and sends to the group using the interface selected by the system. We need to update the test to set the outgoing interface. The test systems in the CI don't run into this as they seem to have only be connected to one network.
09-02-2020