[ https://issues.apache.org/jira/browse/HDFS-15803?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17277947#comment-17277947 ]
Hui Fei commented on HDFS-15803: -------------------------------- [~haiyang Hu] [~sodonnell] Thanks again, committed to trunk! > EC: 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 > Assignee: huhaiyang > Priority: Trivial > Fix For: 3.4.0 > > 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