RFR: 8251843: jfr/tool/TestPrintJSON.java fails intermittently [v4]

Markus Grönlund mgronlun at openjdk.java.net
Thu Dec 3 19:04:59 UTC 2020


On Thu, 3 Dec 2020 11:21:10 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:

>> The 'jfr' tool can print events in JSON and XML and the result is verified by reading the same file using the jdk.jfr.consumer API. The method RecordedEvent::getEndTime() exposes timestamps with nano-precision (java.time.Instant), while the tool sorts them according to ticks.  It is believed that  events with different ticks timestamp in some circumstances may get the same nano-precision timestamp. This leads to events not arriving in the same order and the test fails.
>> 
>> Fix is to sort events in the test by ticks as well
>
> Erik Gahlin has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Remove unused imports

Looks good.

-------------

Marked as reviewed by mgronlun (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/1589


More information about the hotspot-jfr-dev mailing list