Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-6236

ImageServlet should use Time#monotonicNow to measure latency.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.0, 3.0.0-alpha1
    • 2.4.1
    • namenode
    • None
    • Reviewed

    Description

      ImageServlet currently uses Time#now to get file transfer latency measurements and pass them to the metrics system. It would be preferrable to use Time#monotonicNow so that we're using the most precise available system timer, and we're not subject to odd bugs that could result in negative latency measurements, like resetting the system clock.

      Attachments

        1. HDFS-6236.1.patch
          4 kB
          Chris Nauroth

        Activity

          People

            cnauroth Chris Nauroth
            cnauroth Chris Nauroth
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: