diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 7c02b75e78..f27205c808 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/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 diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/NameNodeAdapter.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/NameNodeAdapter.java index ed511eea47..76f0b9408a 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/NameNodeAdapter.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/NameNodeAdapter.java @@ -46,6 +46,14 @@ public static LocatedBlocks getBlockLocations(NameNode namenode, 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) {