sodonnel opened a new pull request, #3512:
URL: https://github.com/apache/ozone/pull/3512

   ## What changes were proposed in this pull request?
   
   This PR defines a ContainerHealthCheckInterface, with the following 
definition:
   
   ```
     ContainerHealthResult checkHealth(
         ContainerInfo container, Set<ContainerReplica> replicas,
         List<Pair<Integer, DatanodeDetails>> indexesPendingAdd,
         List<Pair<Integer, DatanodeDetails>> indexesPendingDelete,
         int remainingRedundancyForMaintenance);
   }
   ```
   
   And also an implementation for EC containers that can determine if an EC 
container is over or under replicated. The interface will return a 
ContainerHealthResult object that contains information about the health state. 
Eg for under replicated, it will contain details about the remaining 
redundancy, whether its due to decommission etc.
   
   For now this class is standalone and unused. It will be integrated with 
ReplicationManager soon via a new Jira.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-6697
   
   ## How was this patch tested?
   
   New unit tests


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