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/trunk@1362189 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Todd Lipcon 2012-07-16 18:54:46 +00:00
parent 572823c82c
commit 6df36b58e1
2 changed files with 4 additions and 0 deletions

View File

@ -179,6 +179,9 @@ Trunk (unreleased changes)
HDFS-3614. Revert unused MiniDFSCluster constructor from HDFS-3049.
(acmurthy via eli)
HDFS-3625. Fix TestBackupNode by properly initializing edit log during
startup. (Junping Du via todd)
Branch-2 ( Unreleased changes )
INCOMPATIBLE CHANGES

View File

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