xinglin commented on code in PR #5764:
URL: https://github.com/apache/hadoop/pull/5764#discussion_r1239137137
##########
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java:
##########
@@ -2051,6 +2056,26 @@ synchronized HAServiceState getServiceState() {
return state.getServiceState();
}
+ /**
+ * Emit Namenode HA service state as an integer so that one can monitor NN HA
+ * state based on this metric.
+ *
+ * @return 0 when not fully started
+ * 1 for active or standalone (non-HA) NN
+ * 2 for standby
+ * 3 for observer
+ *
Review Comment:
Searching codebase, it seems we would set a state to STOPPING state only in
YARN ResourceManager HA. We are not using that state in HDFS.
--
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]