HDFS-4347. Avoid infinite waiting checkpoint to complete in TestBackupNode. Contributed by Plamen Jeliazkov.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1426706 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Konstantin Shvachko 2012-12-29 04:28:38 +00:00
parent 6a4b1b881c
commit a3e393afaf
2 changed files with 4 additions and 1 deletions

View File

@ -341,6 +341,9 @@ Release 2.0.3-alpha - Unreleased
HDFS-4308. addBlock() should persist file blocks once.
(Plamen Jeliazkov via shv)
HDFS-4347. Avoid infinite waiting checkpoint to complete in TestBackupNode.
(Plamen Jeliazkov via shv)
BREAKDOWN OF HDFS-3077 SUBTASKS
HDFS-3077. Quorum-based protocol for reading and writing edit logs.

View File

@ -325,8 +325,8 @@ public class TestBackupNode {
//
// Take a checkpoint
//
backup = startBackupNode(conf, op, 1);
long txid = cluster.getNameNodeRpc().getTransactionID();
backup = startBackupNode(conf, op, 1);
waitCheckpointDone(cluster, txid);
for (int i = 0; i < 10; i++) {