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

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

XMLWordPrintable

    • jfr
    • b24
    • Not verified

        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

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

                Created:
                Updated:
                Resolved: