فهرست منبع

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

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1165860 13f79535-47bb-0310-9956-ffa450edef68
Todd Lipcon 13 سال پیش
والد
کامیت
42d443fb79

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

@@ -26,6 +26,8 @@ Trunk (unreleased changes)
 
     HDFS-2313. Rat excludes has a typo for excluding editsStored files. (atm)
 
+    HDFS-2314. MRV1 test compilation broken after HDFS-2197 (todd)
+
 Release 0.23.0 - Unreleased
 
   INCOMPATIBLE CHANGES

+ 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) {