db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kathey Marsden (JIRA)" <j...@apache.org>
Subject [jira] Updated: (DERBY-4463) JMX test in nightly test suite failed with: JMXTest:clientjava.lang.InterruptedException:
Date Wed, 08 Sep 2010 23:25:33 GMT

     [ https://issues.apache.org/jira/browse/DERBY-4463?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kathey Marsden updated DERBY-4463:
----------------------------------

    Attachment: TestInterrupted.java

Myrna and I looked at this together a bit today.
It looks like there is a bug with the IBM JVM related to Thread.interrupted() and Process.waitFor().
 The attached program TestInterrupted.java shows the problem:
Even though interrupted() shows false after being called the first time, Process.waitFor()
fails with:
$ java TestInterrupted
Thread.currentThrad().interrupt() sets interrupted flag
Thread.currentThread().interrupted()true
Thread.currentThread().interrupted()false
Exception in thread "main" java.lang.InterruptedException
        at java.lang.ProcessImpl.waitFor(Native Method)
        at TestInterrupted.main(TestInterrupted.java:19)

This failure occurs  with:

java version "1.6.0"
Java(TM) SE Runtime Environment (build pwi3260sr8-20100409_01(SR8))
IBM J9 VM (build 2.4, JRE 1.6.0 IBM J9 2.4 Windows XP x86-32 jvmwi3260sr8-20100
01_55940 (JIT enabled, AOT enabled)
J9VM - 20100401_055940
JIT  - r9_20100401_15339
GC   - 20100308_AA)
JCL  - 20100408_01

and

java version "1.5.0"
Java(TM) 2 Runtime Environment, Standard Edition (build pwi32devifx-20100127 (SR
11 FP1 ))
IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223ifx-2010
0125 (JIT enabled)
J9VM - 20100122_52103_lHdSMr
JIT  - 20091016_1845ifx1_r8
GC   - 20091026_AA)
JCL  - 20100127

The program succeeds with the Sun JVM and IBM 1.4.2 with:
$ java TestInterrupted
Thread.currentThrad().interrupt() sets interrupted flag
Thread.currentThread().interrupted()true
Thread.currentThread().interrupted()false
hello. Glad to be here!

Exit value=0




> JMX test in nightly test suite failed with:  JMXTest:clientjava.lang.InterruptedException:
 
> --------------------------------------------------------------------------------------------
>
>                 Key: DERBY-4463
>                 URL: https://issues.apache.org/jira/browse/DERBY-4463
>             Project: Derby
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 10.6.1.0
>         Environment: failed on windows with ibm15 and ibm16 jvms
>            Reporter: Mike Matrigali
>         Attachments: derby-4463-2.diff, derby-4463-except-non-sun-vm.diff, derby-4463.diff,
DERBY-4463_debugnot4commit.diff, TestInterrupted.java, tmpsteibm16.out, tmpstejdk16.out
>
>
> 7) JMXTest:clientjava.lang.InterruptedException: 
> 	at org.apache.derbyTesting.junit.SpawnedProcess.complete(SpawnedProcess.java:137)
> 	at org.apache.derbyTesting.junit.NetworkServerTestSetup.tearDown(NetworkServerTestSetup.java:392)
> 	at junit.extensions.TestSetup$1.protect(TestSetup.java:20)
> 	at junit.extensions.TestSetup.run(TestSetup.java:23)
> 	at org.apache.derbyTesting.junit.BaseTestSetup.run(BaseTestSetup.java:57)
> 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
> 	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
> 	at junit.extensions.TestSetup.run(TestSetup.java:23)
> 	at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
> 	at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
> 	at junit.extensions.TestSetup.run(TestSetup.java:23)
> Started failing with build 887040.  Here are links for the errors the first time it was
encountered:
> http://people.apache.org/~myrnavl/derby_test_results/main/windows/testlog/ibm15/887040-suites.All_diff.txt
> http://people.apache.org/~myrnavl/derby_test_results/main/windows/testlog/ibm16/887040-suites.All_diff.txt
> And it still occurred in the next main build:
> http://people.apache.org/~myrnavl/derby_test_results/main/windows/testlog/ibm15/887483-suites.All_diff.txt
> http://people.apache.org/~myrnavl/derby_test_results/main/windows/testlog/ibm16/887483-suites.All_diff.txt

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message