You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Nick Dimiduk (Jira)" <ji...@apache.org> on 2020/10/02 22:08:00 UTC
[jira] [Created] (HBASE-25150) Metrics recording a time duration
should use System.nanoTime()
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)