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

   ## What changes were proposed in this pull request?
   
   ### Changes
   `ContainerHealthState`:
   - Remove the numeric value, the lookup map, `getValue()` and `fromValue()`.
   - Rewrite the class javadoc. It now says that the label is not the container 
lifecycle state, that it is
     kept only in SCM memory and is not persisted or sent over RPC, and that 
when more than one handler
     sets a label in one check, `ContainerInfo` keeps only the last one, while 
the report counts each one.
   - Define the terms used by the labels: *UNHEALTHY replica* (when a datanode 
marks a replica UNHEALTHY
     and what that means), *healthy replica*, *offline node*, and how Ratis 
counts replicas on
     decommissioning and maintenance nodes.
   - For each label, describe when RM sets it, with examples where useful. Each 
description was checked
     against the RM handlers and the datanode code.
   - Update the descriptions. They are used as the metric description in 
`ReplicationManagerMetrics`.
   
   `ContainerInfo`: javadoc only. It now says the health state is a label from 
the last RM check, not a
   lifecycle state, and is kept only in SCM memory.
   
   `TestContainerHealthState`: remove the tests that only checked the numeric 
values. Update
   `testDescriptions` for the new text. `testMetricNames` is unchanged.
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-17557
   
   ## How was this patch tested?
   - `hdds-common`: all tests in the `org.apache.hadoop.hdds.scm.container` 
package, including
     `TestContainerHealthState` and `TestReplicationManagerReport`.


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