[
https://issues.apache.org/jira/browse/HDFS-907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12806614#action_12806614
]
Konstantin Boudnik commented on HDFS-907:
-----------------------------------------
More to go, Ravi :-)
{noformat}
+ // and previous interval are 0
+ assertEquals(0,nnMetrics.numGetBlockLocations.getPreviousIntervalValue());
+ assertEquals(0,nnMetrics.numGetBlockLocations.getCurrentIntervalValue());
{noformat}
BTW, you don't need to track versions of your patches manually (e.g. v1, v2,
etc.): simply keep attaching the file with the same name and JIRA will do the
rest. No patches will be lost either.
> Add tests for getBlockLocations and totalLoad metrics.
> --------------------------------------------------------
>
> Key: HDFS-907
> URL: https://issues.apache.org/jira/browse/HDFS-907
> Project: Hadoop HDFS
> Issue Type: Test
> Components: name-node
> Affects Versions: 0.20.2
> Environment: This jira will add more tests for metrics reported by
> NameNode . numGetBlockLocations and totalLoad.
> Reporter: Ravi Phulari
> Assignee: Ravi Phulari
> Priority: Minor
> Fix For: 0.20.2
>
> Attachments: HDFS-907.patch, HDFS-907.v2.patch, HDFS-907v3.patch
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.