The following test failed in the JDK20 CI:
jdk/jfr/api/consumer/recordingstream/TestStop.java
Here's a snippet from the log file:
#section:main
----------messages:(7/369)----------
command: main jdk.jfr.api.consumer.recordingstream.TestStop
reason: User specified action: run main/othervm jdk.jfr.api.consumer.recordingstream.TestStop
started: Fri Dec 02 14:19:47 UTC 2022
Mode: othervm [/othervm specified]
Additional options from @modules: --add-modules jdk.jfr,java.management
finished: Fri Dec 02 14:19:47 UTC 2022
elapsed time (seconds): 0.618
----------configuration:(3/51)----------
Boot Layer
add modules: jdk.jfr java.management
----------System.out:(62/2409)----------
RecordingStream outer:
[jdk.jfr.api.consumer.recordingstream.TestStop$MarkEvent {
startTime = 14:19:47.853 (2022-12-02)
duration = 0.209 ms
id = "a"
eventThread = "MainThread" (javaThreadId = 21)
stackTrace = [
jdk.jfr.api.consumer.recordingstream.TestStop.testNestedStop() line: 118
jdk.jfr.api.consumer.recordingstream.TestStop.main(String[]) line: 57
jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Object, Object[]) line: 104
java.lang.reflect.Method.invoke(Object, Object[]) line: 578
com.sun.javatest.regtest.agent.MainWrapper$MainThread.run() line: 125
]
}
, jdk.jfr.api.consumer.recordingstream.TestStop$MarkEvent {
startTime = 14:19:47.876 (2022-12-02)
duration = 0.0435 ms
id = "b"
eventThread = "MainThread" (javaThreadId = 21)
stackTrace = [
jdk.jfr.api.consumer.recordingstream.TestStop.testNestedStop() line: 127
jdk.jfr.api.consumer.recordingstream.TestStop.main(String[]) line: 57
jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Object, Object[]) line: 104
java.lang.reflect.Method.invoke(Object, Object[]) line: 578
com.sun.javatest.regtest.agent.MainWrapper$MainThread.run() line: 125
]
}
, jdk.jfr.api.consumer.recordingstream.TestStop$MarkEvent {
startTime = 14:19:47.890 (2022-12-02)
duration = 0.0450 ms
id = "c"
eventThread = "MainThread" (javaThreadId = 21)
stackTrace = [
jdk.jfr.api.consumer.recordingstream.TestStop.testNestedStop() line: 133
jdk.jfr.api.consumer.recordingstream.TestStop.main(String[]) line: 57
jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Object, Object[]) line: 104
java.lang.reflect.Method.invoke(Object, Object[]) line: 578
com.sun.javatest.regtest.agent.MainWrapper$MainThread.run() line: 125
]
}
]
RecordingStream inner:
[jdk.jfr.api.consumer.recordingstream.TestStop$MarkEvent {
startTime = 14:19:47.876 (2022-12-02)
duration = 0.0435 ms
id = "b"
eventThread = "MainThread" (javaThreadId = 21)
stackTrace = [
jdk.jfr.api.consumer.recordingstream.TestStop.testNestedStop() line: 127
jdk.jfr.api.consumer.recordingstream.TestStop.main(String[]) line: 57
jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Object, Object[]) line: 104
java.lang.reflect.Method.invoke(Object, Object[]) line: 578
com.sun.javatest.regtest.agent.MainWrapper$MainThread.run() line: 125
]
}
]
Outer count: 3
Inner count: 1
----------System.err:(12/775)----------
java.lang.AssertionError: Expected outer stream to have 3 events
at jdk.jfr.api.consumer.recordingstream.TestStop.testNestedStop(TestStop.java:153)
at jdk.jfr.api.consumer.recordingstream.TestStop.main(TestStop.java:57)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:578)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:125)
at java.base/java.lang.Thread.run(Thread.java:1599)
JavaTest Message: Test threw exception: java.lang.AssertionError: Expected outer stream to have 3 events
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.AssertionError: Expected outer stream to have 3 events
----------rerun:(38/8002)*----------