Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-6236

ImageServlet should use Time#monotonicNow to measure latency.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 2.4.0
    • Fix Version/s: 2.4.1
    • Component/s: namenode
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      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.

      1. HDFS-6236.1.patch
        4 kB
        Chris Nauroth

        Activity

          People

          • Assignee:
            Chris Nauroth
            Reporter:
            Chris Nauroth
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development