hadoop-common-issues mailing list archives

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

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

Steve Loughran commented on HADOOP-13291:
-----------------------------------------

I'll leave you to choose where to commit it; I'd guess in 2.8+, right?

> 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, HADOOP-13291.002.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