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

EC: Remove unnecessary method (getWeight) in StripedReconstructionInfo

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 3.4.0, 3.3.6
    • 3.4.0, 3.3.6
    • erasure-coding
    • None
    • Reviewed

    Description

       Removing the unused method from StripedReconstructionInfo

      // StripedReconstructionInfo.java
      /**
       * Return the weight of this EC reconstruction task.
       *
       * DN uses it to coordinate with NN to adjust the speed of scheduling the
       * reconstructions tasks to this DN.
       *
       * @return the weight of this reconstruction task.
       * @see HDFS-12044
       */
      int getWeight() {
        // See HDFS-12044. The weight of a RS(n, k) is calculated by the network
        // connections it opens.
        return sources.length + targets.length;
      }
      

      Attachments

        1. HDFS-15803_001.patch
          1 kB
          Haiyang Hu

        Activity

          People

            haiyang Hu Haiyang Hu
            haiyang Hu Haiyang Hu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: