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. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
