Integrated: 8251843: jfr/tool/TestPrintJSON.java fails intermittently
Erik Gahlin
egahlin at openjdk.java.net
Fri Dec 4 10:41:14 UTC 2020
On Thu, 3 Dec 2020 08:21:32 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
This pull request has now been integrated.
Changeset: feabddee
Author: Erik Gahlin <egahlin at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/feabddee
Stats: 50 lines in 3 files changed: 44 ins; 0 del; 6 mod
8251843: jfr/tool/TestPrintJSON.java fails intermittently
Reviewed-by: mgronlun
-------------
PR: https://git.openjdk.java.net/jdk/pull/1589
More information about the hotspot-jfr-dev
mailing list