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:16:00 UTC

[jira] [Created] (HBASE-27316) Time based metrics will be reset after any get request

Yunbo Fan created HBASE-27316:
---------------------------------

             Summary: 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


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)