Skip to content

Commit cdce2ef

Browse files
committed
HADOOP-9945. HAServiceState should have a state for stopped services. Contributed by Karthik Kambatla.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1523147 13f79535-47bb-0310-9956-ffa450edef68
1 parent 8ab3262 commit cdce2ef

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

hadoop-common-project/hadoop-common/CHANGES.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ha/HAServiceProtocol.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)