JDK-7098100 : java/util/Locale/Bug6989440.java fails intermittently
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util:i18n
  • Affected Version: 7
  • Priority: P4
  • Status: Resolved
  • Resolution: Not an Issue
  • OS: generic
  • CPU: generic
  • Submitted: 2011-10-05
  • Updated: 2013-09-16
  • Resolved: 2013-09-16
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 8
8Resolved
Related Reports
Relates :  
Description
#Test Results (version 2)
#Wed Oct 05 17:15:44 IST 2011
#checksum:6161bfd3a897f140
#-----testdescription-----
$file=/net/marino/export/Users/chris/repos/jdk8/tl/jdk_work/test/java/util/Locale/Bug6989440.java
$root=/net/marino/export/Users/chris/repos/jdk8/tl/jdk_work/test
keywords=bug6989440
run=USER_SPECIFIED compile -XDignore.symbol.file=true Bug6989440.java\nUSER_SPECIFIED main Bug6989440\n
source=Bug6989440.java
title=Verify ConcurrentModificationException is not thrown with multiple thread accesses.

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

#-----testresult-----
description=file:/net/marino/export/Users/chris/repos/jdk8/tl/jdk_work/test/java/util/Locale/Bug6989440.java
elapsed=121200 0:02:01.200
end=Wed Oct 05 17:15:44 IST 2011
environment=regtest
execStatus=Failed. Execution failed: `main' threw exception: java.util.ConcurrentModificationException
hostname=treelo
javatestOS=Linux 2.6.25.14-108.fc9.x86_64 (i386)
javatestVersion=4.1.4
script=com.sun.javatest.regtest.RegressionScript
sections=script_messages compile build main
start=Wed Oct 05 17:13:43 IST 2011
test=java/util/Locale/Bug6989440.java
work=/net/marino/export/Users/chris/repos/jdk8/tl/jdk_work/test/JTwork/java/util/Locale

#section:script_messages
----------messages:(4/203)----------
JDK under test: (/java/re/jdk/1.7.0/promoted/fcs/b147/binaries/linux-i586)
java version "1.7.0"
Java(TM) SE Runtime Environment (build 1.7.0-b147)
Java HotSpot(TM) Server VM (build 21.0-b17, mixed mode)

#section:compile
----------messages:(3/253)----------
command: compile -XDignore.symbol.file=true /net/marino/export/Users/chris/repos/jdk8/tl/jdk_work/test/java/util/Locale/Bug6989440.java
reason: User specified action: run compile -XDignore.symbol.file=true Bug6989440.java
elapsed time (seconds): 1.045
result: Passed. Compilation successful

#section:build
----------messages:(3/95)----------
command: build Bug6989440
reason: Named class compiled on demand
elapsed time (seconds): 0.001
result: Passed. All files up to date

#section:main
----------messages:(4/145)----------
command: main Bug6989440
reason: User specified action: run main Bug6989440
Timeout signalled after 120 seconds
elapsed time (seconds): 120.025
----------System.out:(0/0)----------
----------System.err:(3/36)----------

JavaTest Message:  Test complete.

result: Failed. Execution failed: `main' threw exception: java.util.ConcurrentModificationException


test result: Failed. Execution failed: `main' threw exception: java.util.ConcurrentModificationException

Comments
The existing test case already has Thread.join() to wait on each child thread to terminate, so the issue described here is already taken care of.
16-09-2013

EVALUATION This is a follow up to CR 7027061. See discussion on core-libs-dev: http://mail.openjdk.java.net/pipermail/core-libs-dev/2011-October/007823.html In samevm/agentvm mode jtreg will try to clean up non deamon threads created by the test once the test is seen to complete, return from its main method. The main thread in the test should wait on the three other threads to complete before exiting. This is common in other tests.
05-10-2011