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

Haiyang Hu updated HDFS-17247:
------------------------------
    Description: 
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 
AvailableSpaceCommonUtil, and abstract some public methods such as 
{code:java}
chooseLocalStorage, swapStorageTypes, select, compareDataNode
{code}

the AvailableSpaceBlockPlacementPolicy and 
AvailableSpaceRackFaultTolerantBlockPlacementPolicy can call related methods in 
AvailableSpaceCommonUtil. 
If there are related optimizations later, they can be modified based on 
AvailableSpaceCommonUtil.

  was:
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 
AvailableSpaceCommonUtil, and abstract some public methods such as 
{code:java}
chooseLocalStorage, swapStorageTypes, select, compareDataNode
{code}
. 
the AvailableSpaceBlockPlacementPolicy and 
AvailableSpaceRackFaultTolerantBlockPlacementPolicy can call related methods in 
AvailableSpaceCommonUtil. 
If there are related optimizations later, they can be modified based on 
AvailableSpaceCommonUtil.


> 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 
> AvailableSpaceCommonUtil, and abstract some public methods such as 
> {code:java}
> chooseLocalStorage, swapStorageTypes, select, compareDataNode
> {code}
> the AvailableSpaceBlockPlacementPolicy and 
> AvailableSpaceRackFaultTolerantBlockPlacementPolicy can call related methods 
> in AvailableSpaceCommonUtil. 
> If there are related optimizations later, they can be modified based on 
> AvailableSpaceCommonUtil.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to