This is an automated email from the ASF dual-hosted git repository.

tasanuma pushed a commit to branch branch-3.3
in repository https://gitbox.apache.org/repos/asf/hadoop.git


The following commit(s) were added to refs/heads/branch-3.3 by this push:
     new 0c2234fd8e8 HDFS-15803. EC: Remove unnecessary method (getWeight) in 
StripedReconstructionInfo. Contributed by huhaiyang
0c2234fd8e8 is described below

commit 0c2234fd8e8c13e74b5142f02ad864bd781e3441
Author: Hui Fei <[email protected]>
AuthorDate: Wed Feb 3 20:00:45 2021 +0800

    HDFS-15803. EC: Remove unnecessary method (getWeight) in 
StripedReconstructionInfo. Contributed by huhaiyang
    
    (cherry picked from commit 66ecee333e0aeeaba3467a425cedcae3ab790739)
---
 .../datanode/erasurecode/StripedReconstructionInfo.java    | 14 --------------
 1 file changed, 14 deletions(-)

diff --git 
a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/erasurecode/StripedReconstructionInfo.java
 
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/erasurecode/StripedReconstructionInfo.java
index 0a3e12546df..c166f5ec031 100644
--- 
a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/erasurecode/StripedReconstructionInfo.java
+++ 
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/erasurecode/StripedReconstructionInfo.java
@@ -104,19 +104,5 @@ public class StripedReconstructionInfo {
     return targetStorageIds;
   }
 
-  /**
-   * 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;
-  }
 }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to