Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8296733

JFR: File Read event for RandomAccessFile::write(byte[]) is incorrect

    XMLWordPrintable

Details

    • jfr
    • b24
    • Not verified

    Backports

      Description

        The duration of the jdk.FileRead event calculation is incorrect. The start time is not subtracted from the end time, instead the end time is used as the duration.

        This means all FileRead events are likely to be included, regardless if the threshold is below 20 ms. This could overflow buffers, but also lead to overlapping events, which are trickier (slower) for JMC to read..

        This regression was introduced in JDK 15 when ThreadLocals were removed.


        Impact: High, loss of data
        Likelihood: Low/Medium
        Workaround: Medium, disable FileRead event

        H(L/M)M => P2

        Attachments

          Issue Links

            Activity

              People

                egahlin Erik Gahlin
                egahlin Erik Gahlin
                Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: