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)

Reply via email to