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

Erik Gahlin egahlin at openjdk.java.net
Thu Dec 3 10:42:14 UTC 2020


> 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 API however only expose timestamps with nano-precision (java.time.Instant), while the tool sorts them according to ticks.  It is believed that in some circumstances two events may get the same nano-precision timestamp, but not when the ticks resolution is used. This leads to events not arriving in the same order and the verification 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 trailing spaces

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

Changes:
  - all: https://git.openjdk.java.net/jdk/pull/1589/files
  - new: https://git.openjdk.java.net/jdk/pull/1589/files/257dadf8..584f4713

Webrevs:
 - full: https://webrevs.openjdk.java.net/?repo=jdk&pr=1589&range=02
 - incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=1589&range=01-02

  Stats: 3 lines in 1 file changed: 1 ins; 2 del; 0 mod
  Patch: https://git.openjdk.java.net/jdk/pull/1589.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/1589/head:pull/1589

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


More information about the hotspot-jfr-dev mailing list