From d1438b501dae9efc7aa84de35a57e1b8e6f5645e Mon Sep 17 00:00:00 2001 From: Todd Lipcon Date: Tue, 6 Sep 2011 00:34:57 +0000 Subject: [PATCH] HDFS-2310. TestBackupNode fails since HADOOP-7524 went in. Contributed by Ivan Kelly. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1165461 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 2 ++ .../java/org/apache/hadoop/hdfs/server/namenode/BackupNode.java | 1 + .../java/org/apache/hadoop/hdfs/server/namenode/NameNode.java | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 0f1bf69423..516ae556f9 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -17,6 +17,8 @@ Trunk (unreleased changes) HDFS-2299. TestOfflineEditsViewer is failing on trunk. (Uma Maheswara Rao G via atm) + HDFS-2310. TestBackupNode fails since HADOOP-7524 went in. + (Ivan Kelly via todd) Release 0.23.0 - Unreleased diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/BackupNode.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/BackupNode.java index 1efd4fae3f..36f10d16fd 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/BackupNode.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/BackupNode.java @@ -74,6 +74,7 @@ public class BackupNode extends NameNode implements JournalProtocol { BackupNode(Configuration conf, NamenodeRole role) throws IOException { super(conf, role); + this.server.addProtocol(JournalProtocol.class, this); } ///////////////////////////////////////////////////// diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java index 5c481f7652..95bad27440 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java @@ -214,7 +214,7 @@ public ProtocolSignature getProtocolSignature(String protocol, protected FSNamesystem namesystem; protected NamenodeRole role; /** RPC server. Package-protected for use in tests. */ - Server server; + RPC.Server server; /** RPC server for HDFS Services communication. BackupNode, Datanodes and all other services should be connecting to this server if it is