You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-commits@hadoop.apache.org by ta...@apache.org on 2022/10/21 08:32:49 UTC
[hadoop] branch branch-3.3 updated: HDFS-15803. EC: Remove unnecessary method (getWeight) in StripedReconstructionInfo. Contributed by huhaiyang
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 <fe...@apache.org>
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: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org