-
Type:
Sub-task
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: HA branch (HDFS-1623)
-
Fix Version/s: HA branch (HDFS-1623)
-
Component/s: ha, hdfs-client, namenode
-
Labels:None
-
Target Version/s:
-
Hadoop Flags:Reviewed
Let's add an interface to HAServiceProtocol to query the current state of a NameNode for use by the the CLI (HAAdmin) and Web UI (HDFS-2677). This essentially makes the names "active" and "standby" from ACTIVE_STATE and STANDBY_STATE public interfaces, which IMO seems reasonable. Unlike the other APIs we should be able to use the interface even when HA is not enabled (as by default a non-HA NN is active).