hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mingliang Liu (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (HADOOP-13291) Probing stats in DFSOpsCountStatistics/S3AStorageStatistics should be correctly implemented
Date Sat, 18 Jun 2016 10:26:05 GMT

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

Mingliang Liu edited comment on HADOOP-13291 at 6/18/16 10:25 AM:
------------------------------------------------------------------

The v1 patch adds a unit test for this.


was (Author: liuml07):
The v2 patch adds a unit test for this.

> Probing stats in DFSOpsCountStatistics/S3AStorageStatistics should be correctly implemented
> -------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-13291
>                 URL: https://issues.apache.org/jira/browse/HADOOP-13291
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs
>    Affects Versions: 2.8.0
>            Reporter: Mingliang Liu
>            Assignee: Mingliang Liu
>         Attachments: HADOOP-13291.000.patch, HADOOP-13291.001.patch
>
>
> To probe a stat in {{StorageStatistics}}, users can use the {{StorageStatistics#isTracked()}}
API. Currently {{DFSOpsCountStatistics}} implements this function wrongly. {{S3AStorageStatistics}}
borrowed the same idea and also has the same error.
> # The {{isTracked()}} is not correctly implemented. I believe this was an omission in
code.
> # {{isTracked()}} checks a stat with operation symbol (instead of enum name). {{getLongStatistics()}}
should return LongStatistics iterators with symbol as name, instead of the enum variable name.
Or else, {{isTracked(getLongStatistics().next().getName());}} returns false. This will lead
to confusion.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org


Mime
View raw message