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 fe...@apache.org on 2021/02/03 12:01:40 UTC
[hadoop] branch trunk 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.
ferhui pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/hadoop.git
The following commit(s) were added to refs/heads/trunk by this push:
new 66ecee3 HDFS-15803. EC: Remove unnecessary method (getWeight) in StripedReconstructionInfo. Contributed by huhaiyang
66ecee3 is described below
commit 66ecee333e0aeeaba3467a425cedcae3ab790739
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
---
.../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 0a3e125..c166f5e 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