JDK-8078585 : (ch) java/nio/channels/AsynchronousChannelGroup/Basic.java fails intermittently
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 9
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: solaris
  • CPU: x86_64
  • Submitted: 2015-04-24
  • Updated: 2018-09-11
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
tbdUnresolved
Related Reports
Relates :  
Relates :  
Description
After switch the run to concurrency mode, observe this test fails intermittently with:

----------System.out:(1/20)----------
-- test shutdown --
----------System.err:(15/756)----------
java.lang.RuntimeException: Group should have terminated
	at Basic.awaitTermination(Basic.java:52)
	at Basic.testShutdownWithNoChannels(Basic.java:63)
	at Basic.shutdownTests(Basic.java:107)
	at Basic.main(Basic.java:43)
	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)

Failed at:

    static void awaitTermination(AsynchronousChannelGroup group) throws InterruptedException {
        boolean terminated = group.awaitTermination(20, TimeUnit.SECONDS);
        if (!terminated)
            throw new RuntimeException("Group should have terminated");
    }



Comments
This seems to be a fast machine, hard to believe that 20s is insufficient. We can increase it but it's possible there is something else going on here.
24-04-2015