浏览代码

HDFS-2314. MRV1 test compilation broken after HDFS-2197. Contributed by Todd Lipcon.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1169869 13f79535-47bb-0310-9956-ffa450edef68
Todd Lipcon 13 年之前
父节点
当前提交
0876630020

+ 3 - 0
hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt

@@ -1005,6 +1005,9 @@ Release 0.23.0 - Unreleased
     HDFS-2289. Ensure jsvc is bundled with the HDFS distribution artifact.
     (Alejandro Abdelnur via acmurthy) 
 
+    HDFS-2314. MRV1 test compilation broken after HDFS-2197 (todd)
+
+
   BREAKDOWN OF HDFS-1073 SUBTASKS
 
     HDFS-1521. Persist transaction ID on disk between NN restarts.

+ 8 - 0
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/NameNodeAdapter.java

@@ -46,6 +46,14 @@ public class NameNodeAdapter {
     return namenode.getNamesystem().getBlockLocations(
         src, offset, length, false, true);
   }
+  
+  /**
+   * Get the internal RPC server instance.
+   * @return rpc server
+   */
+  public static Server getRpcServer(NameNode namenode) {
+    return ((NameNodeRpcServer)namenode.getRpcServer()).server;
+  }
 
   public static DelegationTokenSecretManager getDtSecretManager(
       final FSNamesystem ns) {