-
Bug
-
Resolution: Fixed
-
P4
-
11, 23
-
b19
-
Verified
https://bugs.openjdk.org/browse/JDK-8327650 addresses a jtreg timeout failure in java/nio/channels/DatagramChannel/StressNativeSignal.java due to a race condition. This failure highlighted an anomaly in the specific Exceptions thrown due to an asynchronous close and further investigation uncovered additional issues with a ClosedByInterruptedException.
In StressNativeSignal test, a race condition caused the repeated executed of a receive loop. The initial iteration should have resulted in an AsynchronousCloseException and a subsequent invocation of received resulting in a ClosedChannelException.
the ClosedChannelException is thrown by the receive call flow but due inheritance from AbstractInterruptibleChannel, it is "overtaken" by the AsynchronousCloseException thrown by the AIC::end method
In StressNativeSignal test, a race condition caused the repeated executed of a receive loop. The initial iteration should have resulted in an AsynchronousCloseException and a subsequent invocation of received resulting in a ClosedChannelException.
the ClosedChannelException is thrown by the receive call flow but due inheritance from AbstractInterruptibleChannel, it is "overtaken" by the AsynchronousCloseException thrown by the AIC::end method
- relates to
-
JDK-8327650 Test java/nio/channels/DatagramChannel/StressNativeSignal.java timed out
- Resolved