HDDS-14671. Remove healthy_readonly state from SCM#9836
HDDS-14671. Remove healthy_readonly state from SCM#9836sodonnel merged 17 commits intoapache:HDDS-14496-zdufrom
Conversation
Gargi-jais11
left a comment
There was a problem hiding this comment.
Thanks @sodonnel for the patch.
Few more places it needs updation like comment changes.
hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/node/TestNodeStateManager.java
Show resolved
Hide resolved
| // All datanodes on the SCM should have moved to HEALTHY-READONLY state. | ||
| TestHddsUpgradeUtils.testDataNodesStateOnSCM( | ||
| cluster.getStorageContainerManagersList(), NUM_DATA_NODES, | ||
| HEALTHY_READONLY, HEALTHY); | ||
| TestHddsUpgradeUtils.testDataNodesStateOnSCM(cluster.getStorageContainerManagersList(), NUM_DATA_NODES, HEALTHY); |
There was a problem hiding this comment.
Please update the comment above to:
All datanodes on the SCM should have moved to HEALTHY state.
There was a problem hiding this comment.
Please update the comment here as well.
There was a problem hiding this comment.
Please update this comment as well.
|
I think the Dropdown and query still include "healthy_readonly" in Grafana dashboard of Overall-Metrics. This should be removed since the state is deprecated. |
I just didn't know that was there. I have removed the metrics now. It is better to take them away I think. I have addressed the other comments too. |
Thank you. It happens while removing code we don't know about code in few places |
Gargi-jais11
left a comment
There was a problem hiding this comment.
I checked the codebase with keyword healthy_readonly no more can be found except for compatibility reasons.
Just in the documentation of NonRolling-upgrades there is mention about Healthy_Readonly state, here https://ozone.apache.org/docs/administrator-guide/operations/upgrade-and-downgrade/#querying-finalization-status
|
I create HDDS-14739 to update the website after this one is committed. However we probably need to hold off on doing that, as these changes are going to a branch and they won't be in a release for a while. Until then, the documentation remains valid! |
Makes sense! |
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/node/NodeStateManager.java
Outdated
Show resolved
Hide resolved
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/node/NodeStateManager.java
Show resolved
Hide resolved
...zone/integration-test/src/test/java/org/apache/hadoop/hdds/upgrade/TestHddsUpgradeUtils.java
Outdated
Show resolved
Hide resolved
hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/node/TestSCMNodeManager.java
Show resolved
Hide resolved
hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/node/TestSCMNodeManager.java
Outdated
Show resolved
Hide resolved
hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/node/TestSCMNodeManager.java
Outdated
Show resolved
Hide resolved
|
@errose28 I made the change to take out the comment and synchronization and the CI is green so I went ahead and committed. Thanks for the review @errose28 and @Gargi-jais11! |
What changes were proposed in this pull request?
Healthy_Readonly was added only for the upgrade flow, and it is no longer needed, so we should remove it.
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-14671
How was this patch tested?
Existing tests, some of which were modified to reflect the new behavior.