git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1169869 13f79535-47bb-0310-9956-ffa450edef68
@@ -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.
@@ -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) {