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

   ## What changes were proposed in this pull request?
   
   
   Replication Manager has increasingly complex logic used to check if a 
container is under or over replicated, unhealthy etc.
   
   Other parts of the system, such as Decommission and Recon also need to know 
if a set of containers are healthy or not, but they currently have their own 
logic to do this, which can result in a mis-match in health states between RM 
and Recon or decommission.
   
   This PR exposes the container check chain used by RM to check containers, 
and allows it to be called in a read-only way, avoiding any commands being sent.
   
   The results of the call populate a ReplicationManagerReport instance passed 
into the command, which allows the call to check the state of containers 
checked.
   
   In a later PR, we plan to integrate the Decommission Monitor with this API 
so it does not have any of its own logic to determine if a container is 
under-replicated or not.
   
   ## What is the link to the Apache JIRA
   
   https://issues.apache.org/jira/browse/HDDS-9729
   
   ## How was this patch tested?
   
   Various tests modified to confirm the readonly operation and some new tests 
to validate the new API works correctly.


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