You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Yunbo Fan (Jira)" <ji...@apache.org> on 2022/08/23 08:48:00 UTC
[jira] [Updated] (HBASE-27316) Time based metrics will be reset after any get request
[ https://issues.apache.org/jira/browse/HBASE-27316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Yunbo Fan updated HBASE-27316:
------------------------------
Attachment: screenshot-1.png
> Time based metrics will be reset after any get request
> ------------------------------------------------------
>
> Key: HBASE-27316
> URL: https://issues.apache.org/jira/browse/HBASE-27316
> Project: HBase
> Issue Type: Bug
> Components: metrics
> Affects Versions: 2.4.13
> Reporter: Yunbo Fan
> Priority: Minor
> Attachments: screenshot-1.png
>
>
> Jmx metrics can be query by http request.
> But metrics will be reset after any get request.
> The root cause may be the implement of Histogram's method "snapshot"
> {code:java}
> @Override
> public Snapshot snapshot() {
> return histogram.snapshotAndReset();
> } {code}
> It will call snapshot and reset at the same time.
> I think it should not be reset cause we may need history metrics.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)