[
https://issues.apache.org/jira/browse/HDFS-17247?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17782104#comment-17782104
]
ASF GitHub Bot commented on HDFS-17247:
---------------------------------------
haiyang1987 opened a new pull request, #6245:
URL: https://github.com/apache/hadoop/pull/6245
### Description of PR
https://issues.apache.org/jira/browse/HDFS-17247
The AvailableSpaceBlockPlacementPolicy has made some optimizations such as
[HDFS-14578](https://issues.apache.org/jira/browse/HDFS-14578),[HDFS-17210](https://issues.apache.org/jira/browse/HDFS-17210),
the AvailableSpaceRackFaultTolerantBlockPlacementPolicy need keep same
logics of optimization same as ASBPP.
Currently considering implementing a public class, such as
AvailableSpaceBlockPlacementPolicyUtils, and abstract some public methods such
as `chooseLocalStorage, swapStorageTypes, select, compareDataNode`,
the AvailableSpaceBlockPlacementPolicy and
AvailableSpaceRackFaultTolerantBlockPlacementPolicy can call related methods in
AvailableSpaceBlockPlacementPolicyUtils.
If there are related optimizations later, they can be modified based on
AvailableSpaceBlockPlacementPolicyUtils.
> Improve AvailableSpaceRackFaultTolerantBlockPlacementPolicy logic
> ------------------------------------------------------------------
>
> Key: HDFS-17247
> URL: https://issues.apache.org/jira/browse/HDFS-17247
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: namanode
> Reporter: Haiyang Hu
> Assignee: Haiyang Hu
> Priority: Major
>
> The AvailableSpaceBlockPlacementPolicy has made some optimizations such as
> HDFS-14578,HDFS-17210,
> the AvailableSpaceRackFaultTolerantBlockPlacementPolicy need keep same logics
> of optimization same as ASBPP.
> Currently considering implementing a public class, such as
> AvailableSpaceBlockPlacementPolicyUtils, and abstract some public methods
> such as
> {code:java}
> chooseLocalStorage, swapStorageTypes, select, compareDataNode
> {code}
> the AvailableSpaceBlockPlacementPolicy and
> AvailableSpaceRackFaultTolerantBlockPlacementPolicy can call related methods
> in AvailableSpaceBlockPlacementPolicyUtils.
> If there are related optimizations later, they can be modified based on
> AvailableSpaceBlockPlacementPolicyUtils.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]