[ 
https://issues.apache.org/jira/browse/HBASE-27316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17583440#comment-17583440
 ] 

Yunbo Fan commented on HBASE-27316:
-----------------------------------

!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)

Reply via email to