[ 
https://issues.apache.org/jira/browse/HDFS-15803?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hui Fei updated HDFS-15803:
---------------------------
    Fix Version/s: 3.4.0
       Resolution: Fixed
           Status: Resolved  (was: Patch Available)

> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to