JDK-8153548 : java/nio/channels/AsyncCloseAndInterrupt.java fails with ClosedChannelException
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2016-04-06
  • Updated: 2016-05-26
  • Resolved: 2016-04-07
Related Reports
Duplicate :  
Relates :  
Description
Test java/nio/channels/AsyncCloseAndInterrupt.java fails intermittently with ClosedChannelException:

SocketChannel/writev/close
java.lang.Exception: SocketChannel/writev/close threw an exception
	at TestThread.finishAndThrow(TestThread.java:80)
	at AsyncCloseAndInterrupt.test(AsyncCloseAndInterrupt.java:606)
	at AsyncCloseAndInterrupt.test(AsyncCloseAndInterrupt.java:626)
	at AsyncCloseAndInterrupt.test(AsyncCloseAndInterrupt.java:664)
	at AsyncCloseAndInterrupt.main(AsyncCloseAndInterrupt.java:697)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-ea/Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(java.base@9-ea/NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-ea/DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(java.base@9-ea/Method.java:531)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
	at java.lang.Thread.run(java.base@9-ea/Thread.java:804)
Caused by: java.nio.channels.ClosedChannelException
	at sun.nio.ch.SocketChannelImpl.ensureWriteOpen(java.base@9-ea/SocketChannelImpl.java:273)
	at sun.nio.ch.SocketChannelImpl.write(java.base@9-ea/SocketChannelImpl.java:497)
	at java.nio.channels.SocketChannel.write(java.base@9-ea/SocketChannel.java:502)
	at AsyncCloseAndInterrupt$14.doIO(AsyncCloseAndInterrupt.java:338)
	at AsyncCloseAndInterrupt$Tester.go(AsyncCloseAndInterrupt.java:486)
	at TestThread.run(TestThread.java:55)
Comments
JDK-8153209
07-04-2016