HDFS-2764. Merge r1241780 from trunk to 0.23

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.23@1298229 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Suresh Srinivas 2012-03-07 23:48:42 +00:00
parent 9c8f7e16e5
commit 9aa829fe67
2 changed files with 3 additions and 3 deletions

View File

@ -173,6 +173,8 @@ Release 0.23.3 - UNRELEASED
HDFS-2285. BackupNode should reject requests to modify namespace.
(shv and Uma Maheswara Rao)
HDFS-2764. TestBackupNode is racy. (atm)
Release 0.23.2 - UNRELEASED
INCOMPATIBLE CHANGES

View File

@ -25,8 +25,6 @@
import java.util.Collections;
import java.util.List;
import junit.framework.TestCase;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.commons.logging.impl.Log4JLogger;
@ -102,10 +100,10 @@ void waitCheckpointDone(MiniDFSCluster cluster, long txid) {
"checkpoint txid should increase above " + txid);
Thread.sleep(1000);
} catch (Exception e) {}
// The checkpoint is not done until the nn has received it from the bn
thisCheckpointTxId = cluster.getNameNode().getFSImage().getStorage()
.getMostRecentCheckpointTxId();
} while (thisCheckpointTxId < txid);
// Check that the checkpoint got uploaded to NN successfully
FSImageTestUtil.assertNNHasCheckpoints(cluster,
Collections.singletonList((int)thisCheckpointTxId));