You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Yiqun Lin (JIRA)" <ji...@apache.org> on 2016/12/29 03:25:58 UTC

[jira] [Updated] (HDFS-11281) The metric of fileIoErrorRate not counted in DataNodeVolumeMetrics

     [ https://issues.apache.org/jira/browse/HDFS-11281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Yiqun Lin updated HDFS-11281:
-----------------------------
    Status: Patch Available  (was: Open)

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
>
> 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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org