File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
hadoop-common-project/hadoop-common
src/main/java/org/apache/hadoop/ha Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -408,6 +408,9 @@ Release 2.1.1-beta - UNRELEASED
408408 HADOOP-9918. Add addIfService to CompositeService (Karthik Kambatla via
409409 Sandy Ryza)
410410
411+ HADOOP-9945. HAServiceState should have a state for stopped services.
412+ (Karthik Kambatla via atm)
413+
411414 OPTIMIZATIONS
412415
413416 BUG FIXES
Original file line number Diff line number Diff line change @@ -43,13 +43,15 @@ public interface HAServiceProtocol {
4343 public static final long versionID = 1L ;
4444
4545 /**
46- * An HA service may be in active or standby state. During
47- * startup, it is in an unknown INITIALIZING state.
46+ * An HA service may be in active or standby state. During startup, it is in
47+ * an unknown INITIALIZING state. During shutdown, it is in the STOPPING state
48+ * and can no longer return to active/standby states.
4849 */
4950 public enum HAServiceState {
5051 INITIALIZING ("initializing" ),
5152 ACTIVE ("active" ),
52- STANDBY ("standby" );
53+ STANDBY ("standby" ),
54+ STOPPING ("stopping" );
5355
5456 private String name ;
5557
You can’t perform that action at this time.
0 commit comments