HDFS-15803. EC: Remove unnecessary method (getWeight) in StripedReconstructionInfo. Contributed by huhaiyang
(cherry picked from commit 66ecee333e
)
This commit is contained in:
parent
1f414ab847
commit
0c2234fd8e
@ -104,19 +104,5 @@ String[] getTargetStorageIds() {
|
|||||||
return targetStorageIds;
|
return targetStorageIds;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 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;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user