[ https://issues.apache.org/jira/browse/HDFS-15803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17275504#comment-17275504 ]
huhaiyang edited comment on HDFS-15803 at 1/30/21, 7:28 AM: ------------------------------------------------------------ Upload the simple patch , Here is the patch to remove it. No need for new test case. was (Author: haiyang hu): Here is the patch to remove it. No need for new test case. > Remove unnecessary method (getWeight) in StripedReconstructionInfo > ------------------------------------------------------------------- > > Key: HDFS-15803 > URL: https://issues.apache.org/jira/browse/HDFS-15803 > Project: Hadoop HDFS > Issue Type: Improvement > Reporter: huhaiyang > Priority: Trivial > Attachments: HDFS-15803_001.patch > > > Removing the unused method from StripedReconstructionInfo > {code:java} > // 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; > } > {code} -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org