Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-15155

writeIoRate of DataNodeVolumeMetrics is never used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0
    • hdfs
    • None
    • Reviewed

    Description

      There is some incorrect object using in DataNodeVolumeMetrics, writeIoRate is never used and syncIoRate should be replaced by writeIoRate in the following code:

      // Based on writeIoRate
      public long getWriteIoSampleCount() {
        return syncIoRate.lastStat().numSamples();
      }
      
      public double getWriteIoMean() {
        return syncIoRate.lastStat().mean();
      }
      
      public double getWriteIoStdDev() {
        return syncIoRate.lastStat().stddev();
      }
      

       

       

       

      Attachments

        1. HDFS-15155.005.patch
          4 kB
          Haibin Huang
        2. HDFS-15155.004.patch
          4 kB
          Haibin Huang
        3. HDFS-15155.003.patch
          4 kB
          Haibin Huang
        4. HDFS-15155.002.patch
          3 kB
          Haibin Huang
        5. HDFS-15155.001.patch
          1 kB
          Haibin Huang

        Activity

          People

            huanghaibin Haibin Huang
            huanghaibin Haibin Huang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: