JDK-4690287 : Regression sun/io/Converter/TestConv.java failes due to jtreg's expiration
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio.charsets
  • Affected Version: 1.4.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_8
  • CPU: sparc
  • Submitted: 2002-05-23
  • Updated: 2002-07-30
  • Resolved: 2002-07-16
Related Reports
Duplicate :  
Relates :  
Description
===============================================================================
Regression test suite for hopper build 12:
got from
http://meercat.sfbay:8080/shuna/i18n_regression/script/hopper/build12_05202002/
JDK : hopper b12
OS  : win2000 Prof japanese / Solaris 8 sparc Ultra 30 (ja_JP.euc)
===============================================================================

Running TestConv.java on Solaris using Jtreg, this test case is interrupted and failed.

I received the following messages:

result: Failed. Execution failed: Program`/home/rs88024/jdk1.4.1/b12-sol/j2sdk1.4.1/bin/java' interrupted! (timed out?)

This interrupted(time out) problem seems to be caused with jtreg's default timeout.
Because this is not reproducible when I executed it with java command.
It took about 30 minutes to run the this test program on Solaris(Ultra 1 or 30) with java directly.


Here is detail of error.
------------------------
#Test Results (version 2)
#Tue May 21 14:21:19 JST 2002
#checksum:709f76f0e978f33b
#-----testdescription-----
$file=/home/rs88024/regression/reg_merlin/test/sun/io/Converter/TestConv.java
$root=/home/rs88024/regression/reg_merlin/test
keywords=bug4179153
run=ASSUMED_ACTION main TestConv\n
source=TestConv.java
title=Read code mapping table and check code conversion

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

#-----testresult-----
description=file:///home/rs88024/regression/reg_merlin/test/sun/io/Converter/TestConv.jav
a
end=Tue May 21 14:21:19 JST 2002
environment=regtest
execStatus=Failed. Execution failed: Program `/home/rs88024/jdk1.4.1/b12-sol/j2sdk1.4.1/b
in/java' interrupted! (timed out?)
javatestOS=SunOS 5.8 (sparc)
javatestVersion=2.1.5
script=com.sun.javatest.regtest.RegressionScript
sections=script_messages build compile main
start=Tue May 21 14:19:15 JST 2002
status=Failed. Execution failed: Program `/home/rs88024/jdk1.4.1/b12-sol/j2sdk1.4.1/bin/j
ava' interrupted! (timed out?)
test=sun/io/Converter/TestConv.java
work=/home/rs88024/regression/reg_merlin/JTwork/sun/io/Converter

#section:script_messages
----------messages:(2/133)----------
JDK under test: java full version "1.4.1-beta-b12" (/home/rs88024/jdk1.4.1/b12-sol/j2sdk1
.4.1)
Timeout signalled after 120.0 seconds

#section:build
----------messages:(3/94)----------
command: build TestConv
reason: Named class compiled on demand
elapsed time (seconds): 4.176
result: Passed. Compilation successful

#section:compile
----------messages:(3/170)----------
command: compile /home/rs88024/regression/reg_merlin/test/sun/io/Converter/TestConv.java
reason: .class file out of date or does not exist
elapsed time (seconds): 4.161
----------System.out:(0/0)----------
----------System.err:(0/0)----------
result: Passed. Compilation successful

#section:main
----------messages:(3/117)----------
command: main TestConv
reason: Assumed action based on file name: run main TestConv
elapsed time (seconds): 120.145
----------System.out:(57/1075)*----------

Checking Cp1046...
[Testing default converter type]
OK.

Checking Cp1046...
[Testing internal (sun.io) converter implementation]
OK.

Checking Cp037...
[Testing default converter type]
OK.

Checking Cp037...
[Testing internal (sun.io) converter implementation]
OK.

Checking Cp1381...
[Testing default converter type]
Regression Warning code point
Warning 0: 0xA1AA -> \\u2015  multi-mapping? \\u2014
OK.

Checking Cp1381...
[Testing internal (sun.io) converter implementation]
Regression Warning code point
Warning 0: 0xA1AA -> \\u2015  multi-mapping? \\u2014
OK.

Checking Big5_HKSCS...
[Testing default converter type]
OK.

Checking Big5_HKSCS...
NIO API supported by Big5_HKSCS
[Testing NIO charset implementation]
OK.

Checking Big5_HKSCS...
[Testing internal (sun.io) converter implementation]
OK.

Checking Big5...
[Testing default converter type]
OK.

Checking Big5...
NIO API supported by Big5
[Testing NIO charset implementation]
OK.

Checking Big5...
[Testing internal (sun.io) converter implementation]
OK.

Checking Cp1025...
[Testing default converter type]
----------System.err:(0/0)----------
result: Failed. Execution failed: Program `/home/rs88024/jdk1.4.1/b12-sol/j2sdk1.4.1/bin/
java' interrupted! (timed out?)


test result: Failed. Execution failed: Program `/home/rs88024/jdk1.4.1/b12-sol/j2sdk1.4.1
/bin/java' interrupted! (timed out?)


* This problem does not ocuur on Windows.




Comments
EVALUATION The failure seems to be caused with jtreg's default timeout. I can reproduce the failure with jtreg on my Solaris8 machine. The test passed when I executed it with java directly. I confirmed that jtreg's -timeout option solves the problem. I think that adding @run tag (main/timeout=...)" in the test program should solve the problem as well and is a reasonable fix. ###@###.### 2002-05-23 From the additional investigation, it appears the timeout is caused by Converter's performance regresion since b11. Resp. engineer's comment: | I surmise that the issue is that some of the new test coverage introduced | into TestConv since b10 has increased the time it takes the test to run | quite significantly. The new test coverate seems to have nothing to do with this issue. This test took 30 minutes on my Solaris in ja locale, however, it took only 2 minutes on the same machine in C locale. We should not use -timeout parameter in order to detect such performance regression for this test program at the moment. ###@###.### 2002-05-25 Issues which are extending the duration of the regression test are already recorded into bugID 4691554. Closing this bug as a duplicate ###@###.### 2002-07-16
25-05-2002