HDFS-2497 Fix TestBackupNode failure. Contributed by Suresh Srinivas.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1188436 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Suresh Srinivas 2011-10-24 23:07:13 +00:00
parent 43553df4e3
commit 4846ca7863
2 changed files with 6 additions and 3 deletions

View File

@ -147,7 +147,10 @@ Trunk (unreleased changes)
getDefaultBlockSize() and getDefaultReplication() in WebHdfsFileSystem getDefaultBlockSize() and getDefaultReplication() in WebHdfsFileSystem
and cleared content type in ExceptionHandler. (szetszwo) and cleared content type in ExceptionHandler. (szetszwo)
HDFS-2481 Unknown protocol: org.apache.hadoop.hdfs.protocol.ClientProtocol (sanjay) HDFS-2481 Unknown protocol: org.apache.hadoop.hdfs.protocol.ClientProtocol.
(sanjay)
HDFS-2497 Fix TestBackupNode failure. (suresh)
Release 0.23.0 - Unreleased Release 0.23.0 - Unreleased

View File

@ -82,13 +82,13 @@ public class NamenodeRegistrationWritable implements Writable {
rpcAddress = Text.readString(in); rpcAddress = Text.readString(in);
httpAddress = Text.readString(in); httpAddress = Text.readString(in);
role = NamenodeRole.valueOf(Text.readString(in)); role = NamenodeRole.valueOf(Text.readString(in));
storageInfo = new StorageInfoWritable();
storageInfo.readFields(in); storageInfo.readFields(in);
} }
public static NamenodeRegistrationWritable convert(NamenodeRegistration reg) { public static NamenodeRegistrationWritable convert(NamenodeRegistration reg) {
return new NamenodeRegistrationWritable(reg.getAddress(), return new NamenodeRegistrationWritable(reg.getAddress(),
reg.getHttpAddress(), reg.getRole(), reg.getHttpAddress(), reg.getRole(), reg);
reg);
} }
public NamenodeRegistration convert() { public NamenodeRegistration convert() {