JDK-8078590 : (ch) java/nio/channels/AsynchronousSocketChannel/Basic.java fails intermittently with "Should not complete"
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 9
  • Priority: P4
  • Status: Resolved
  • Resolution: Cannot Reproduce
  • OS: solaris
  • CPU: x86_64
  • Submitted: 2015-04-24
  • Updated: 2017-05-16
  • Resolved: 2017-05-16
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 :  
Relates :  
Relates :  
Description
After switch the run to concurrency mode, start observe this test fails  intermittently (though very rare) with "Should not complete".

----------System.out:(13/268)----------
-- bind --
-- socket options --
-- connect --
-- asynchronous close when connecting --
-- asynchronous close when reading --
-- asynchronous close when writing --
-- cancel --
-- read (1) --
-- read (2) --
-- read (3) --
-- write (1) --
-- write (2) --
-- timeouts --
----------System.err:(27/1653)----------
java.lang.RuntimeException: java.lang.RuntimeException: Should not complete
	at Basic.testTimeout(Basic.java:783)
	at Basic.testTimeout(Basic.java:738)
	at Basic.main(Basic.java:68)
	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:502)
	at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:218)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.RuntimeException: Should not complete
	at Basic$10.completed(Basic.java:756)
	at Basic$10.completed(Basic.java:754)
	at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
	at sun.nio.ch.UnixAsynchronousSocketChannelImpl.finishRead(UnixAsynchronousSocketChannelImpl.java:430)
	at sun.nio.ch.UnixAsynchronousSocketChannelImpl.finish(UnixAsynchronousSocketChannelImpl.java:191)
	at sun.nio.ch.UnixAsynchronousSocketChannelImpl.onEvent(UnixAsynchronousSocketChannelImpl.java:213)
	at sun.nio.ch.SolarisEventPort$EventHandlerTask.run(SolarisEventPort.java:209)
	at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
	at sun.misc.InnocuousThread.run(InnocuousThread.java:74)
Comments
Bulk resolution of nine issues to "Cannot Reproduce" according to satisfying one or more of these criteria: 1. There is no evidence of the failure reported in the issue having been observed more than once. 2. The failure has occurred more than once but not recently. 3. The failure has not occurred since the test was improved. The heuristic for "recently" was an elapsed time of approximately one year since a failure was seen.
16-05-2017

Have we seen any failures since the apparently unique one which was the reason that this issue was filed?
28-02-2017

This test uses Random: static final Random rand = new Random();
27-04-2015