Parcourir la source

Resolve trivial compilation error after previous merge

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/HDFS-3042@1324570 13f79535-47bb-0310-9956-ffa450edef68
Todd Lipcon il y a 13 ans
Parent
commit
6f2aae046d

+ 4 - 1
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/ha/BootstrapStandby.java

@@ -36,6 +36,8 @@ import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.ha.HAServiceProtocol;
 import org.apache.hadoop.ha.HAServiceStatus;
 import org.apache.hadoop.ha.HAServiceProtocol.HAServiceState;
+import org.apache.hadoop.ha.HAServiceProtocol.RequestSource;
+import org.apache.hadoop.ha.HAServiceProtocol.StateChangeRequestInfo;
 import org.apache.hadoop.ha.ServiceFailedException;
 import org.apache.hadoop.hdfs.DFSUtil;
 import org.apache.hadoop.hdfs.HAUtil;
@@ -251,7 +253,8 @@ public class BootstrapStandby implements Tool, Configurable {
   private void transitionOtherNNActive()
       throws AccessControlException, ServiceFailedException, IOException {
     LOG.info("Transitioning the running namenode to active...");
-    createHAProtocolProxy().transitionToActive();    
+    createHAProtocolProxy().transitionToActive(
+        new StateChangeRequestInfo(RequestSource.REQUEST_BY_USER));
     LOG.info("Successful");
   }