JDK-8199913 : java/nio/channels/Selector/LotsOfChannels.java fails intermittently with IOException
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 11
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows
  • CPU: x86_64
  • Submitted: 2018-03-21
  • Updated: 2018-03-29
  • Resolved: 2018-03-29
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 11
11Resolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
java/nio/channels/Selector/LotsOfChannels.java fails intermittently on Windows:

----------System.err:(22/1615)----------
java.io.IOException: An operation was attempted on something that is not a socket
	at java.base/sun.nio.ch.SocketDispatcher.close0(Native Method)
	at java.base/sun.nio.ch.SocketDispatcher.close(SocketDispatcher.java:63)
	at java.base/sun.nio.ch.SocketChannelImpl.kill(SocketChannelImpl.java:894)
	at java.base/sun.nio.ch.SocketChannelImpl.implCloseSelectableChannel(SocketChannelImpl.java:882)
	at java.base/java.nio.channels.spi.AbstractSelectableChannel.implCloseChannel(AbstractSelectableChannel.java:241)
	at java.base/java.nio.channels.spi.AbstractInterruptibleChannel.close(AbstractInterruptibleChannel.java:112)
	at java.base/sun.nio.ch.SinkChannelImpl.kill(SinkChannelImpl.java:68)
	at java.base/sun.nio.ch.WindowsSelectorImpl.implClose(WindowsSelectorImpl.java:518)
	at java.base/sun.nio.ch.SelectorImpl.implCloseSelector(SelectorImpl.java:116)
	at java.base/java.nio.channels.spi.AbstractSelector.close(AbstractSelector.java:111)
	at LotsOfChannels.main(LotsOfChannels.java:75)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
	at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:229)
	at java.base/java.lang.Thread.run(Thread.java:842)

J
Comments
Duplicate of JDK-8200304.
29-03-2018

There is currently a bug in the TwoStacks implementation of java.net.DatagramSocketImpl that we believe is the cause of this issue. It is closing the socket under the feet of several tests. We will close this issue once the fix for java.net.DatagramSocketImpl is in jdk/jdk.
28-03-2018