[
https://issues.apache.org/jira/browse/HDFS-15803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Stephen O'Donnell updated HDFS-15803:
-------------------------------------
Summary: EC: Remove unnecessary method (getWeight) in
StripedReconstructionInfo (was: Remove unnecessary method (getWeight) in
StripedReconstructionInfo )
> 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
> 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: [email protected]
For additional commands, e-mail: [email protected]