From 42d443fb79c230eac64f721f467b63fd58643b4b Mon Sep 17 00:00:00 2001 From: Todd Lipcon Date: Tue, 6 Sep 2011 21:25:35 +0000 Subject: [PATCH] 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 --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 2 ++ .../hadoop/hdfs/server/namenode/NameNodeAdapter.java | 8 ++++++++ 2 files changed, 10 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 7c02b75e78e..f27205c8084 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 ed511eea472..76f0b9408a7 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 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) {