Skip to content

Commit 66ecee3

Browse files
committed
HDFS-15803. EC: Remove unnecessary method (getWeight) in StripedReconstructionInfo. Contributed by huhaiyang
1 parent 394b9f7 commit 66ecee3

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/erasurecode/StripedReconstructionInfo.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -104,19 +104,5 @@ String[] getTargetStorageIds() {
104104
return targetStorageIds;
105105
}
106106

107-
/**
108-
* Return the weight of this EC reconstruction task.
109-
*
110-
* DN uses it to coordinate with NN to adjust the speed of scheduling the
111-
* reconstructions tasks to this DN.
112-
*
113-
* @return the weight of this reconstruction task.
114-
* @see HDFS-12044
115-
*/
116-
int getWeight() {
117-
// See HDFS-12044. The weight of a RS(n, k) is calculated by the network
118-
// connections it opens.
119-
return sources.length + targets.length;
120-
}
121107
}
122108

0 commit comments

Comments
 (0)