JDK-8067656 : java/nio/channels/AsynchronousSocketChannel/Basic.java timed out
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Cannot Reproduce
  • OS: windows
  • CPU: generic
  • Submitted: 2014-12-16
  • Updated: 2018-07-05
  • Resolved: 2016-10-24
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.
Other
tbd_minorResolved
Related Reports
Relates :  
Relates :  
Description
It seems to be intermittent failure. Similar issue was also seen in prior release on Windows 7 too. See JDK-8022215.

test output:

----------System.out:(10/231)----------
-- bind --
-- socket options --
-- connect --
-- asynchronous close when connecting --
-- asynchronous close when reading --
-- asynchronous close when writing --
-- cancel --
-- read (1) --
-- read (2) --
-- read (3) --
----------System.err:(15/826)----------
java.nio.channels.ClosedByInterruptException
	at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202)
	at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:478)
	at Basic.testRead3(Basic.java:545)
	at Basic.main(Basic.java:63)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:776)
	at java.lang.Thread.run(Thread.java:745)

JavaTest Message: Test threw exception: java.nio.channels.ClosedByInterruptException
Comments
http://java.se.oracle.com/mach5/view/9-dev-test/job/9-dev-tier2-windows-i586/1313/artifact/JTwork/jdk_test/java/nio/channels/AsynchronousSocketChannel/Basic.jtr/*view*/
19-04-2016

RULE "java/nio/channels/AsynchronousSocketChannel/Basic.java" Exception java.lang.Thread.State: TIMED_WAITING (parking) RULE "java/nio/channels/AsynchronousSocketChannel/Basic.java" Exception java.lang.Thread.State: WAITING (on object monitor) RULE "java/nio/channels/AsynchronousSocketChannel/Basic.java" StatusError Agent error: java.lang.Exception: Agent timed out with a timeout of ... seconds; check console log for any additional details RULE "java/nio/channels/AsynchronousSocketChannel/Basic.java" Timeout none
09-02-2016

RULE java/nio/channels/AsynchronousSocketChannel/Basic.java StatusError Program `C:\local\aurora\CommonData\jdk\bin\java' interrupted! (timed out?) RULE java/nio/channels/AsynchronousSocketChannel/Basic.java Exception java.nio.channels.ClosedByInterruptException
25-12-2014

I've been unable to duplicate this locally or in JPRT. All I can suggest is that we add more diagnostic output so that we get more information if it happens in the future. It's very possible of course that this is not a JDK or test issue, but rather something else on the test machine that causes this test to run slowly.
16-12-2014