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

Yiqun Lin edited comment on HDFS-11281 at 12/29/16 3:27 AM:
------------------------------------------------------------

Attach a simple patch to have a quick fix. Please have a review, [~xyao]. 
Thanks.


was (Author: linyiqun):
Attach a simple patch to have a quick fix.

> The metric of fileIoErrorRate not counted in DataNodeVolumeMetrics
> ------------------------------------------------------------------
>
>                 Key: HDFS-11281
>                 URL: https://issues.apache.org/jira/browse/HDFS-11281
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 3.0.0-alpha2
>            Reporter: Yiqun Lin
>            Assignee: Yiqun Lin
>            Priority: Minor
>         Attachments: HDFS-11281.001.patch
>
>
> The metric of fileIoErrorRate not counted in {{DataNodeVolumeMetrics}}. The 
> relevant codes:
> {code}
>   public void addFileIoError(final long latency) {
>     totalFileIoErrors.incr();
>     metadataOperationRate.add(latency);
>   }
> {code}
> Here the metric {{metadataOperationRate}} should be {{fileIoErrorRate}}. Two 
> reasons: 1.metadataOperationRate has been counted in 
> {{addMetadastaOperationLatency}}. 2.{{fileIoErrorRate}} is never counted in 
> the class {{DataNodeVolumeMetrics}}.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to