hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject svn commit: r1229466 - /hadoop/common/branches/HDFS-1623/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ha/HAServiceProtocol.java
Date Tue, 10 Jan 2012 03:46:05 GMT
Author: todd
Date: Tue Jan 10 03:46:05 2012
New Revision: 1229466

URL: http://svn.apache.org/viewvc?rev=1229466&view=rev
Log:
HDFS-2724. NN web UI can throw NPE after startup, before standby state is entered. Contributed
by Todd Lipcon.

Modified:
    hadoop/common/branches/HDFS-1623/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ha/HAServiceProtocol.java

Modified: hadoop/common/branches/HDFS-1623/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ha/HAServiceProtocol.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/HDFS-1623/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ha/HAServiceProtocol.java?rev=1229466&r1=1229465&r2=1229466&view=diff
==============================================================================
--- hadoop/common/branches/HDFS-1623/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ha/HAServiceProtocol.java
(original)
+++ hadoop/common/branches/HDFS-1623/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/ha/HAServiceProtocol.java
Tue Jan 10 03:46:05 2012
@@ -36,9 +36,11 @@ public interface HAServiceProtocol exten
   public static final long versionID = 1L;
 
   /**
-   * An HA service may be in active or standby state.
+   * An HA service may be in active or standby state. During
+   * startup, it is in an unknown INITIALIZING state.
    */
   public enum HAServiceState {
+    INITIALIZING("initializing"),
     ACTIVE("active"),
     STANDBY("standby");
 



Mime
View raw message