Janus Chow created HDDS-5622:
--------------------------------
Summary: Some improvements in SCMCommonPlacementPolicy
Key: HDDS-5622
URL: https://issues.apache.org/jira/browse/HDDS-5622
Project: Apache Ozone
Issue Type: Improvement
Reporter: Janus Chow
Assignee: Janus Chow
This ticket consists of the following changes in SCMCommonPlacementPolicy.
* refactor getRequiredRackCount() to getRequiredRackCount(int numReplicas)
* Add a method to check if a datanode is available.
Currently getRequiredRackCount() ingests no input arguments and the default
value is ususally 1 or 2, but for EC placement policy, the required racks will
be based on the numReplicas.
The availability check method is added to SCMCommonPlacementPolicy so that it
can be reused by other PlacementPolicy subclasses.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]