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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • metrics
    • 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

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

            Dates

              Created:
              Updated: