Haibin Huang created HDFS-15155:
-----------------------------------

             Summary: writeIoRate of DataNodeVolumeMetrics is never used
                 Key: HDFS-15155
                 URL: https://issues.apache.org/jira/browse/HDFS-15155
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: hdfs
            Reporter: Haibin Huang
            Assignee: Haibin Huang


There is some incorrect object using in DataNodeVolumeMetrics, writeIoRate is 
never used and syncIoRate should be replaced by writeIoRate in the following 
code:
{code:java}
// Based on writeIoRate
public long getWriteIoSampleCount() {
  return syncIoRate.lastStat().numSamples();
}

public double getWriteIoMean() {
  return syncIoRate.lastStat().mean();
}

public double getWriteIoStdDev() {
  return syncIoRate.lastStat().stddev();
}
{code}
 

 

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
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