JDK-8218387 : JFR TestG1ParallelPhases.java failed
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 12,13,14
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux_ubuntu,solaris_11
  • CPU: x86_64
  • Submitted: 2019-02-04
  • Updated: 2021-07-28
  • Resolved: 2019-10-24
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.
Other
tbdResolved
Related Reports
Duplicate :  
Relates :  
Description
The following test failed due to "RuntimeException: Compare
events expected and received, Not found phases: , Not
expected phases: OptScanRS, OptObjCopy: expected true,
was false" on Solaris-X64 in the slowdebug config using
jdk-12+30 bits:

jdk/jfr/event/gc/collection/TestG1ParallelPhases.java

The test only failed in 1 of 3 'slowdebug' bits runs so I'm
tagging this bug as intermittent. It did not fail at all in the
'fastdebug' or 'release' bits runs.

Here is a snippet from the log file: 

#section:main
----------messages:(5/843)----------
command: main -XX:+UnlockExperimentalVMOptions -XX:MaxTenuringThreshold=1 -Xms20M -Xmx20M -XX:G1MixedGCLiveThresholdPercent=100 -XX:G1HeapWastePercent=0 -XX:G1HeapRegionSize=1m -XX:+UseG1GC -XX:+UseStringDeduplication -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI jdk.jfr.event.gc.collection.TestG1ParallelPhases
reason: User specified action: run main/othervm -XX:+UnlockExperimentalVMOptions -XX:MaxTenuringThreshold=1 -Xms20M -Xmx20M -XX:G1MixedGCLiveThresholdPercent=100 -XX:G1HeapWastePercent=0 -XX:G1HeapRegionSize=1m -XX:+UseG1GC -XX:+UseStringDeduplication -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI jdk.jfr.event.gc.collection.TestG1ParallelPhases
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules jdk.jfr,java.management
elapsed time (seconds): 21.709
----------configuration:(3/51)----------
Boot Layer
  add modules: jdk.jfr java.management

----------System.out:(0/0)----------
----------System.err:(15/1265)----------
java.lang.RuntimeException: Compare events expected and received, Not found phases: , Not expected phases: OptScanRS, OptObjCopy: expected true, was false
        at jdk.test.lib.Asserts.fail(Asserts.java:594)
        at jdk.test.lib.Asserts.assertTrue(Asserts.java:486)
        at jdk.jfr.event.gc.collection.TestG1ParallelPhases.main(TestG1ParallelPhases.java:119)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:567)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
        at java.base/java.lang.Thread.run(Thread.java:835)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Compare events expected and received, Not found phases: , Not expected phases: OptScanRS, OptObjCopy: expected true, was false
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Compare events expected and received, Not found phases: , Not expected phases: OptScanRS, OptObjCopy: expected true, was false
----------rerun:(44/4565)*----------


Comments
Fixed with JDK-8213108, making these phases optional because they are not guaranteed to occur.
24-10-2019

Here are the logs for my jdk-13+17 Linux-X64 sightings: $ unzip -l jdk-13+17_linux.8218387.zip Archive: jdk-13+17_linux.8218387.zip Length Date Time Name --------- ---------- ----- ---- 26629 2019-04-19 16:34 jdk-13+17_2/failures.linux-x86_64/TestG1ParallelPhases.jtr.slowdebug --------- ------- 26629 1 file
22-04-2019

Here are the logs for my jdk-12+30 Solaris-X64 sightings: $ unzip -l jdk-12+30_solx64.8218387.zip Archive: jdk-12+30_solx64.8218387.zip Length Date Time Name --------- ---------- ----- ---- 30780 02-02-2019 03:08 jdk-12+30_2/failures.solaris-x86_64/TestG1ParallelPhases.jtr.slowdebug --------- ------- 30780 1 file
04-02-2019