symious opened a new pull request #2543:
URL: https://github.com/apache/ozone/pull/2543


   ## What changes were proposed in this pull request?
   
   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.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-5622
   
   ## How was this patch tested?
   
   unit test
   


-- 
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]

Reply via email to