JDK-8289526 : java/nio/channels/FileChannel/MapTest.java times out
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 17,19,20
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows
  • CPU: x86_64
  • Submitted: 2022-06-30
  • Updated: 2024-03-26
  • Resolved: 2022-07-07
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.
JDK 19 JDK 20
19 b31Fixed 20Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
The following test timed out in the JDK20 CI:

java/nio/channels/FileChannel/MapTest.java

Here's a snippet from the log file:

#section:main
----------messages:(6/214)----------
command: main MapTest
reason: User specified action: run main/othervm/timeout=240 MapTest 
Mode: othervm [/othervm specified]
Timeout information:
--- Timeout information end.
elapsed time (seconds): 1044.15
----------configuration:(0/0)----------
----------System.out:(8/248)*----------
Test file c:\\sb\\prod\\1656591314\\testoutput\\test-support\\jtreg_open_test_jdk_tier2_part2\\tmp\\blah5364480891587285313.tmp initialized
Zero size: OK
Read: OK
Write: OK
High offset: OK
Timeout refired 960 times
Force: OK
Exceptions: OK
----------System.err:(1/16)----------
STATUS:Passed.
----------rerun:(39/4788)*----------

<snip>

result: Error. Program `c:\ade\mesos\work_dir\jib-master\install\jdk-20+5-181\windows-x64.jdk\jdk-20\bin\java' timed out (timeout set to 960000ms, elapsed time including timeout handling was 1044150ms).


Please note that the test PASSed while the timeout handler was running.
Comments
The fix for this bug is integrated in jdk-19+31-2177. It has not yet been synced to JDK20.
08-07-2022

Changeset: 11319c2a Author: Brian Burkhalter <bpb@openjdk.org> Date: 2022-07-07 22:36:08 +0000 URL: https://git.openjdk.org/jdk19/commit/11319c2aeb16ef2feb0ecab0e2811a52e845739d
07-07-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk19/pull/122 Date: 2022-07-07 22:25:10 +0000
07-07-2022

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/9416 Date: 2022-07-07 20:36:43 +0000
07-07-2022

Here's a log file snippet from the jdk-20+5-210-tier7 sighting: java/nio/channels/FileChannel/MapTest.java #section:main ----------messages:(6/214)---------- command: main MapTest reason: User specified action: run main/othervm/timeout=240 MapTest Mode: othervm [/othervm specified] Timeout information: --- Timeout information end. elapsed time (seconds): 1370.12 ----------configuration:(0/0)---------- ----------System.out:(6/217)*---------- Test file c:\\sb\\prod\\1657109651\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_nio\\tmp\\blah4842916556999674799.tmp initialized Zero size: OK Read: OK Write: OK High offset: OK Timeout refired 960 times ----------System.err:(0/0)---------- ----------rerun:(42/5375)*---------- In this sighting, the test did not pass while the timeout handler was running.
06-07-2022

In all three sightings reported thus far, the test PASSed while the timeout handler was running.
05-07-2022

Here's a log file snippet from the jdk-19+30-2145-tier7 sighting: java/nio/channels/FileChannel/MapTest.java #section:main ----------messages:(6/215)---------- command: main MapTest reason: User specified action: run main/othervm/timeout=240 MapTest Mode: othervm [/othervm specified] Timeout information: --- Timeout information end. elapsed time (seconds): 1094.965 ----------configuration:(0/0)---------- ----------System.out:(8/245)*---------- Test file c:\\sb\\prod\\1656751853\\testoutput\\test-support\\jtreg_open_test_jdk_jdk_nio\\tmp\\blah12808570219490195179.tmp initialized Zero size: OK Read: OK Write: OK High offset: OK Timeout refired 960 times Force: OK Exceptions: OK ----------System.err:(1/16)---------- STATUS:Passed. ----------rerun:(42/5403)*---------- Please note that the test PASSed while the timeout handler was running.
02-07-2022