[
https://issues.apache.org/jira/browse/HDFS-13641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16502855#comment-16502855
]
Yiqun Lin commented on HDFS-13641:
----------------------------------
For the test of {{MutableRate/MutableStat}} type metrics, we can use
{{MetricsAsserts.assertCounter}} to verify its counter value. It will get the
value.
{code}
assertCounter("EditLogFetchTimeNumOps", 1L, rb);
{code}
I just did a simple test, the metric value of {{EditLogFetchTimeNumOps}} can be
got but with a incorrect value 0. [~csun], can you look into this?
> Add metrics for edit log tailing
> ---------------------------------
>
> Key: HDFS-13641
> URL: https://issues.apache.org/jira/browse/HDFS-13641
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: metrics
> Reporter: Chao Sun
> Assignee: Chao Sun
> Priority: Major
> Attachments: HDFS-13641-HDFS-12943.000.patch, HDFS-13641.000.patch,
> HDFS-13641.001.patch, HDFS-13641.002.patch
>
>
> We should add metrics for each iteration of edit log tailing, including 1) #
> of edits loaded, 2) time spent in select input edit stream, 3) time spent in
> loading the edits, 4) interval between the iterations.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]