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

        Allen Wittenauer made changes -
        Fix Version/s 3.0.0 [ 12320356 ]
        Arun C Murthy made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Chris Nauroth made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags Reviewed [ 10343 ]
        Fix Version/s 3.0.0 [ 12320356 ]
        Fix Version/s 2.4.1 [ 12326696 ]
        Resolution Fixed [ 1 ]
        Chris Nauroth made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Chris Nauroth made changes -
        Field Original Value New Value
        Attachment HDFS-6236.1.patch [ 12639894 ]
        Chris Nauroth created issue -

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development