Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-25150

Metrics recording a time duration should use System.nanoTime()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: metrics
    • Labels:
      None

      Description

      I was looking around in our table metrics and noticed that scan time is collected using EnvironmentEdgeManager.currentTime(). This isn't a stable way to measure a duration of time on the jvm. We should convert all these occurrences to use TimeUnit.NANOSECONDS.toMillis(System.nanoTime()) instead.

        Attachments

          Activity

            People

            • Assignee:
              skota@cloudera.com Shanmukha Haripriya Kota
              Reporter:
              ndimiduk Nick Dimiduk
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: