Nick Dimiduk created HBASE-25150:
------------------------------------

             Summary: Metrics recording a time duration should use 
System.nanoTime()
                 Key: HBASE-25150
                 URL: https://issues.apache.org/jira/browse/HBASE-25150
             Project: HBase
          Issue Type: Bug
          Components: metrics
            Reporter: Nick Dimiduk


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.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to