Aryan Gupta created HDDS-16718:
----------------------------------
Summary: Include node health state counts in
NodeStateMap.toString()
Key: HDDS-16718
URL: https://issues.apache.org/jira/browse/HDDS-16718
Project: Apache Ozone
Issue Type: Improvement
Reporter: Aryan Gupta
Assignee: Aryan Gupta
{{NodeStateMap.toString()}} currently displays only the total number of
datanodes. It should also display how many datanodes are in each health state.
Update the method to include counts for all {{NodeState}} values, such as
{{{}HEALTHY{}}}, {{{}STALE{}}}, and {{{}DEAD{}}}. Also, add a unit test for the
generated output.
Currently, it produces something similar to:
{{Total number of nodes: 5}}
The new output should contain more information:
{{Total number of nodes: 5, HEALTHY: 3, STALE: 1, DEAD:}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]