- 
    
Bug
 - 
    Resolution: Fixed
 - 
    
  P4                     
     - 
    13, 14, 20
 
- 
        b09
 - 
        x86_64
 - 
        linux_ubuntu, solaris_11
 
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build | 
|---|---|---|---|---|---|---|
| JDK-8365657 | 11.0.30-oracle | Shyam kishor | P4 | Resolved | Fixed | b01 | 
                    The following test failed on Linux-X64 in release configs using
jdk-13+9 bits:
jdk/jfr/event/runtime/TestShutdownEvent.java
The test failed in 3 of 3 'release' bits runs. It did not fail at all in the
'fastdebug' or 'slowdebug' bits runs.
This failure mode is not the same asJDK-8219082.
Here's a snippet from one of the failing log files:
----------System.err:(18/1342)----------
java.io.IOException: Not a valid Flight Recorder file. File length is only 0 bytes.
at jdk.jfr/jdk.jfr.internal.consumer.RecordingInput.<init>(RecordingInput.java:82)
at jdk.jfr/jdk.jfr.internal.consumer.RecordingInput.<init>(RecordingInput.java:87)
at jdk.jfr/jdk.jfr.consumer.RecordingFile.<init>(RecordingFile.java:107)
at jdk.jfr/jdk.jfr.consumer.RecordingFile.readAllEvents(RecordingFile.java:240)
at jdk.jfr.event.runtime.TestShutdownEvent.runSubtest(TestShutdownEvent.java:97)
at jdk.jfr.event.runtime.TestShutdownEvent.main(TestShutdownEvent.java:72)
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.io.IOException: Not a valid Flight Recorder file. File length is only 0 bytes.
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.io.IOException: Not a valid Flight Recorder file. File length is only 0 bytes.
----------rerun:(35/3841)*----------
jdk-13+9 bits:
jdk/jfr/event/runtime/TestShutdownEvent.java
The test failed in 3 of 3 'release' bits runs. It did not fail at all in the
'fastdebug' or 'slowdebug' bits runs.
This failure mode is not the same as
Here's a snippet from one of the failing log files:
----------System.err:(18/1342)----------
java.io.IOException: Not a valid Flight Recorder file. File length is only 0 bytes.
at jdk.jfr/jdk.jfr.internal.consumer.RecordingInput.<init>(RecordingInput.java:82)
at jdk.jfr/jdk.jfr.internal.consumer.RecordingInput.<init>(RecordingInput.java:87)
at jdk.jfr/jdk.jfr.consumer.RecordingFile.<init>(RecordingFile.java:107)
at jdk.jfr/jdk.jfr.consumer.RecordingFile.readAllEvents(RecordingFile.java:240)
at jdk.jfr.event.runtime.TestShutdownEvent.runSubtest(TestShutdownEvent.java:97)
at jdk.jfr.event.runtime.TestShutdownEvent.main(TestShutdownEvent.java:72)
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.io.IOException: Not a valid Flight Recorder file. File length is only 0 bytes.
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.io.IOException: Not a valid Flight Recorder file. File length is only 0 bytes.
----------rerun:(35/3841)*----------
- backported by
 - 
                    
JDK-8365657 jdk/jfr/event/runtime/TestShutdownEvent.java recording file length is 0
-         
     - Resolved
 
 -         
 
- links to
 - 
                    
        
        Commit
        openjdk/panama-foreign/cb636b2c