You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Shanmukha Haripriya Kota (Jira)" <ji...@apache.org> on 2021/05/20 22:37:00 UTC
[jira] [Assigned] (HBASE-25150) Metrics recording a time duration
should use System.nanoTime()
[ https://issues.apache.org/jira/browse/HBASE-25150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Shanmukha Haripriya Kota reassigned HBASE-25150:
------------------------------------------------
Assignee: Shanmukha Haripriya Kota
> 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
> Assignee: Shanmukha Haripriya Kota
> Priority: Major
>
> 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)