United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 7177617 TEST_BUG: java/nio/channels/AsyncCloseAndInterrupt.java failing (win)
7177617 : TEST_BUG: java/nio/channels/AsyncCloseAndInterrupt.java failing (win)

Details
Type:
Bug
Submit Date:
2012-06-16
Status:
Closed
Updated Date:
2012-07-09
Project Name:
JDK
Resolved Date:
2012-07-09
Component:
core-libs
OS:
generic
Sub-Component:
java.nio
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
8
Fixed Versions:
8

Related Reports
Backport:
Relates:

Sub Tasks

Description
The changes for 7176630 has exposed a long standing issue with this test. The test assumes that it can asynchronously close a FileChannel when in the transferTo or transferFrom methods. 

#Test Results (version 2)
#Thu Jun 14 21:20:12 PDT 2012
#checksum:38dc6e845522b6fc
#-----testdescription-----
$file=C\:\\Users\\aurora\\sandbox\\testbase\\test\\java\\nio\\channels\\AsyncCloseAndInterrupt.java
$root=C\:\\Users\\aurora\\sandbox\\testbase\\test
author=Mark Reinhold
keywords=bug4460583 bug4470470 bug4840199 bug6419424 bug6710579 bug6596323 bug6824135 bug6395224
run=ASSUMED_ACTION main AsyncCloseAndInterrupt\r\n
source=AsyncCloseAndInterrupt.java
title=Comprehensive test of asynchronous closing and interruption

#-----environment-----

#-----testresult-----
description=file\:/C\:/Users/aurora/sandbox/testbase/test/java/nio/channels/AsyncCloseAndInterrupt.java
elapsed=1445 0\:00\:01.445
end=Thu Jun 14 21\:20\:12 PDT 2012
environment=regtest
execStatus=Failed. Execution failed\: `main' threw exception\: java.lang.Exception\: FileChannel/transferTo/close timed out
hostname=SC11136074.us.oracle.com
javatestOS=Windows 7 6.1 (x86)
javatestVersion=4.4
jtregVersion=jtreg 4.1 fcs b04
script=com.sun.javatest.regtest.RegressionScript 
sections=script_messages build compile main
start=Thu Jun 14 21\:20\:11 PDT 2012
test=java/nio/channels/AsyncCloseAndInterrupt.java
user.name=aurora
work=C\:\\Users\\aurora\\sandbox\\gresults\\testoutput\\jdk_nio2\\JTwork\\java\\nio\\channels

#section:script_messages
----------messages:(4/223)*----------
JDK under test: (C:\\Users\\aurora\\sandbox\\jdk)
java version "1.8.0-ea"
Java(TM) SE Runtime Environment (build 1.8.0-ea-langtools-nightly-h256-20120614-b44-b00)
Java HotSpot(TM) Client VM (build 24.0-b12, mixed mode)

#section:build
----------messages:(3/110)----------
command: build AsyncCloseAndInterrupt
reason: Named class compiled on demand
elapsed time (seconds): 0.336
result: Passed. Build successful

#section:compile
----------messages:(3/193)*----------
command: compile C:\\Users\\aurora\\sandbox\\testbase\\test\\java\\nio\\channels\\AsyncCloseAndInterrupt.java
reason: .class file out of date or does not exist
elapsed time (seconds): 0.334
----------direct:(2/189)*----------
Note: C:\\Users\\aurora\\sandbox\\testbase\\test\\java\\nio\\channels\\AsyncCloseAndInterrupt.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
result: Passed. Compilation successful

#section:main
----------messages:(3/146)----------
command: main AsyncCloseAndInterrupt
reason: Assumed action based on file name: run main AsyncCloseAndInterrupt 
elapsed time (seconds): 1.106
----------System.err:(24/1127)----------
WARNING: Cannot completely test FileChannels on Windows

FileChannel/transferTo/interrupt
Thrown as expected: java.nio.channels.ClosedByInterruptException

FileChannel/transferTo/pre-interrupt
Thrown as expected: java.nio.channels.ClosedByInterruptException

FileChannel/transferTo/close
java.lang.Exception: FileChannel/transferTo/close timed out
	at TestThread.finishAndThrow(TestThread.java:83)
	at AsyncCloseAndInterrupt.test(AsyncCloseAndInterrupt.java:573)
	at AsyncCloseAndInterrupt.test(AsyncCloseAndInterrupt.java:593)
	at AsyncCloseAndInterrupt.main(AsyncCloseAndInterrupt.java:651)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:474)
	at com.sun.javatest.regtest.MainAction$SameVMRunnable.run(MainAction.java:698)
	at java.lang.Thread.run(Thread.java:722)

JavaTest Message: Test threw exception: java.lang.Exception
JavaTest Message: shutting down test

result: Failed. Execution failed: `main' threw exception: java.lang.Exception: FileChannel/transferTo/close timed out


test result: Failed. Execution failed: `main' threw exception: java.lang.Exception: FileChannel/transferTo/close timed out

                                    

Comments
EVALUATION

Test needs to be updated.
                                     
2012-06-18



Hardware and Software, Engineered to Work Together