JDK-8004219 : TEST_BUG: java/nio/channels/AsynchronousChannelGroup/Unbounded.java fails intermittently [win]
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows
  • CPU: generic
  • Submitted: 2012-11-30
  • Updated: 2012-11-30
  • Resolved: 2012-11-30
Related Reports
Duplicate :  
Description
TEST: java/nio/channels/AsynchronousChannelGroup/Unbounded.java
JDK under test: (C:\jprt\T\P1\124525~1.CHH\TESTPR~1\WINDOW~1.2-P)
java version "1.8.0-internal"
Java(TM) SE Runtime Environment (build 1.8.0-internal-201211291245.chhegar.master_top-b00)
Java HotSpot(TM) 64-Bit Server VM (build 25.0-b09, mixed mode)


ACTION: build -- Passed. Build successful
REASON: Named class compiled on demand
TIME:   0.032 seconds
messages:
command: build Unbounded
reason: Named class compiled on demand
elapsed time (seconds): 0.032

ACTION: compile -- Passed. Compilation successful
REASON: .class file out of date or does not exist
TIME:   0.032 seconds
messages:
command: compile C:\jprt\T\P1\124525.chhegar\s\jdk\test\java\nio\channels\AsynchronousChannelGroup\Unbounded.java
reason: .class file out of date or does not exist
elapsed time (seconds): 0.032

ACTION: main -- Error. Timeout
REASON: Assumed action based on file name: run main Unbounded 
TIME:   480.825 seconds
messages:
command: main Unbounded
reason: Assumed action based on file name: run main Unbounded 
Timeout signalled after 480 seconds
elapsed time (seconds): 480.825
STDOUT:
Listener created.
All connection established.
All read operations outstanding.
STDERR:
read failed: java.io.IOException: An existing connection was forcibly closed by the remote host
read failed: java.io.IOException: An existing connection was forcibly closed by the remote host
read failed: java.io.IOException: An existing connection was forcibly closed by the remote host
.......



Comments
It would appear that while the test has 256 connected socket channels invoking an async read from one of these channels before the listener channels accept method has been invoked will result in an IOException: "An existing connection was forcibly closed by the remote host". If this is expected behavior then this is a test issue, otherwise it could be an implementation problem.
30-11-2012

This test is already on the exclude list so is no longer executed. The issue is not the test itself or the JDK, it seems to be a resource issue on the Windows Server 2003 devops machines.
30-11-2012