HDFS-3625. Fix TestBackupNode by properly initializing edit log during startup. Contributed by Junping Du.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1406740 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Konstantin Shvachko 2012-11-07 18:01:29 +00:00
parent 9d07df5621
commit 824fd2d4be
2 changed files with 4 additions and 0 deletions

View File

@ -1683,6 +1683,9 @@ Release 0.23.5 - UNRELEASED
HDFS-4090. getFileChecksum() result incompatible when called against
zero-byte files. (Kihwal Lee via daryn)
HDFS-3625. Fix TestBackupNode by properly initializing edit log during
startup. (Junping Du via todd)
Release 0.23.4 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -354,6 +354,7 @@ public class BackupNode extends NameNode {
} else {
nsInfo.validateStorage(storage);
}
bnImage.initEditLog();
setRegistration();
NamenodeRegistration nnReg = null;
while(!isStopRequested()) {