eclipse-openj9 / openj9

Eclipse OpenJ9: A Java Virtual Machine for OpenJDK that's optimized for small footprint, fast start-up, and high throughput. Builds on Eclipse OMR (https://github.com/eclipse/omr) and combines with the Extensions for OpenJDK for OpenJ9 repo.
Other
3.28k stars 721 forks source link

testRASAPI_0_FAILED due to The (dump) file exists. #11800

Open JasonFengJ9 opened 3 years ago

JasonFengJ9 commented 3 years ago

Failure link

From an internal build Test_openjdkNext_j9_extended.functional_x86-64_windows_Nightly/377:

23:37:40  openjdk version "17-internal" 2021-09-14
23:37:40  OpenJDK Runtime Environment (build 17-internal+0-adhoc.jenkins.buildjdknextx86-64windowsnightly)
23:37:40  Eclipse OpenJ9 VM (build master-d132a6b28b5, JRE 17 Windows Server 2016 amd64-64-Bit Compressed References 20210125_449 (JIT enabled, AOT enabled)
23:37:40  OpenJ9   - d132a6b28b5
23:37:40  OMR      - b38b0b77c99
23:37:40  JCL      - fba167cf63c based on jdk-17+5)

Optional info

Failure output (captured from console output)

===============================================
Running test testRASAPI_0 ...
===============================================
testRASAPI_0 Start Time: Tue Jan 26 01:29:59 2021 Epoch Time (ms): 1611642599888
variation: NoOptions
JVM_OPTIONS:  
Buildfile: C:\Users\jenkins\workspace\Test_openjdkNext_j9_extended.functional_x86-64_windows_Nightly_testList_1\jvmtest\functional\RasapiTest\test.xml

[test]     [junit] JVMDUMP010I Java dump written to /STDOUT/
     [test]     [junit] JVMDUMP034I User requested Java dump using 'C:\Users\jenkins\workspace\Test_openjdkNext_j9_extended.functional_x86-64_windows_Nightly_testList_1\jvmtest\functional\RasapiTest\javacore.testJavaDumpWithSameFile.1611642614599.txt' through com.ibm.jvm.Dump.javaDumpToFile
     [test]     [junit] JVMDUMP010I Java dump written to C:\Users\jenkins\workspace\Test_openjdkNext_j9_extended.functional_x86-64_windows_Nightly_testList_1\jvmtest\functional\RasapiTest\javacore.testJavaDumpWithSameFile.1611642614599.txt
     [test]     [junit] JVMDUMP030W Cannot write dump to file C:\Users\jenkins\workspace\Test_openjdkNext_j9_extended.functional_x86-64_windows_Nightly_testList_1\jvmtest\functional\RasapiTest\javacore.testJavaDumpWithSameFile.1611642614599.txt: (80) The file exists.
     [test]     [junit] JVMDUMP034I User requested Java dump using 'C:\Temp\javacore.testJavaDumpWithSameFile.1611642614599.txt' through com.ibm.jvm.Dump.javaDumpToFile
     [test]     [junit] JVMDUMP010I Java dump written to C:\Temp\javacore.testJavaDumpWithSameFile.1611642614599.txt
     [test]     [junit] com.ibm.jvm.InvalidDumpOptionException: Error in dump options.
     [test]     [junit] reach here
     [test]     [junit] JVMDUMP030W Cannot write dump to file C:\Users\jenkins\workspace\Test_openjdkNext_j9_extended.functional_x86-64_windows_Nightly_testList_1\jvmtest\functional\RasapiTest\javacore.testJavaDumpWithSameFile.1611642614599.txt: (80) The file exists.

BUILD FAILED
C:\Users\jenkins\workspace\Test_openjdkNext_j9_extended.functional_x86-64_windows_Nightly_testList_1\jvmtest\functional\RasapiTest\test.xml:52: Timeout: killed the sub-process

Total time: 15 minutes 1 second

testRASAPI_0_FAILED

Need determine if the test removes existing dump files before starting the run, or the cleanup failed due to machine issue.

pshipton commented 3 years ago

This test was recently added, 5 days ago https://github.com/eclipse/openj9/pull/11556 @llxia fyi

JasonFengJ9 commented 3 years ago

It appears in JDK8 ibuild across platforms

[test]     [junit] NULL           ---------------------- END OF DUMP -------------------------------------
     [test]     [junit] JVMDUMP010I Java dump written to /bluebird/builds/bld_464579/jvmtest/test/SE80/functional/RasapiTest/javacore.testJavaDumpWithSameFile.1611811334200.txt
     [test]     [junit] JVMDUMP030W Cannot write dump to file /bluebird/builds/bld_464579/jvmtest/test/SE80/functional/RasapiTest/javacore.testJavaDumpWithSameFile.1611811334200.txt: Do not specify an existing file.
     [test]     [junit] JVMDUMP034I User requested Java dump using '/tmp/javacore.testJavaDumpWithSameFile.1611811334200.txt' through com.ibm.jvm.Dump.javaDumpToFile
     [test]     [junit] JVMDUMP010I Java dump written to /tmp/javacore.testJavaDumpWithSameFile.1611811334200.txt
     [test]     [junit] JVMDUMP030W Cannot write dump to file /bluebird/builds/bld_464579/jvmtest/test/SE80/functional/RasapiTest/javacore.testJavaDumpWithSameFile.1611811334200.txt: Do not specify an existing file.
     [test]     [junit] com.ibm.jvm.InvalidDumpOptionException: Error in dump options.
pshipton commented 3 years ago

@llxia seems this test isn't working.

llxia commented 3 years ago

On Jenkins, the test passed in Test_openjdkNext_j9_extended.functional_x86-64_windows_Nightly/379 and it worked in my Grinder: Grinder/13571/.

Testing on the failed machine to see if I can reproduce this failure.

Update: Grinder/13578/ with 10x iterations passed on the previously failed machine win16x64rt3-8

llxia commented 3 years ago

@OscarQQ is vmfarm failure a known issue? If so, could you exclude the test on vmfarm? Thanks

pshipton commented 3 years ago

Another different failure (hang) of testRASAPI_0 in OpenJ9 jdk16 testing https://github.com/eclipse/openj9/issues/11821

llxia commented 3 years ago

@OscarQQ Could you exclude the test on JDK16 and JDK17? The problem seems intermittent.

JasonFengJ9 commented 3 years ago

A slightly different failure at an internal ibuild 466720 (job_output.php?id=671244631) which might be due to the existing dump files.

     [test]     [junit]     FAILED
     [test]     [junit] Failed to find expected number of files in /bluebird/builds/bld_466720/jvmtest/test/SE80/functional/RasapiTest , found:[com.ibm.jvm.ras.tests.jar, test.xml, junit4.jar, autoGen.mk, junitvmwatcher1791756860094546621.properties, junit7825584026004656005.properties, heap.testTriggerDumpClassicHeapToFile.1614744756746.txt, junitvmwatcher7209927740504311610.properties, junit3118576621082231881.properties, core.20210302.231153.11927554.0023.dmp] expected:<7> but was:<10>
     [test]     [junit] junit.framework.AssertionFailedError: Failed to find expected number of files in /bluebird/builds/bld_466720/jvmtest/test/SE80/functional/RasapiTest , found:[com.ibm.jvm.ras.tests.jar, test.xml, junit4.jar, autoGen.mk, junitvmwatcher1791756860094546621.properties, junit7825584026004656005.properties, heap.testTriggerDumpClassicHeapToFile.1614744756746.txt, junitvmwatcher7209927740504311610.properties, junit3118576621082231881.properties, core.20210302.231153.11927554.0023.dmp] expected:<7> but was:<10>
     [test]     [junit]     at com.ibm.jvm.ras.tests.DumpAPITriggerTests.doTestTriggerDumpX(DumpAPITriggerTests.java:309)
     [test]     [junit]     at com.ibm.jvm.ras.tests.DumpAPITriggerTests.testTriggerDumpClassicHeapToFile(DumpAPITriggerTests.java:150)
     [test]     [junit] 
     [test] 
     [test] BUILD FAILED
     [test] /bluebird/builds/bld_466720/jvmtest/test/SE80/functional/RasapiTest/test.xml:77: Test com.ibm.jvm.ras.tests.DumpAPITriggerTests failed
pshipton commented 3 years ago

The test was excluded so it shouldn't run starting in the next ibuild.

OscarQQ commented 3 years ago

related: runtimes/tooling/pull/867 this pr is to disable testRASAPI on vmfarm, still needs one pending approval

pshipton commented 3 years ago

Ah sorry, confused it with testOSGiTCK https://github.com/eclipse/openj9/issues/12072.

I poked @llxia in the tooling issue.

llxia commented 3 years ago

I merged the excludes in the tooling repo.