From a14a6f08ee9404168affe91affd095e349630971 Mon Sep 17 00:00:00 2001 From: Andrew Wang Date: Tue, 8 Mar 2016 11:51:06 -0800 Subject: [PATCH] HDFS-9919. TestStandbyCheckpoints#testNonPrimarySBNUploadFSImage waitForCheckpoint incorrectly. Contributed by Lin Yiqun. --- .../hadoop/hdfs/server/namenode/ha/TestStandbyCheckpoints.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestStandbyCheckpoints.java b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestStandbyCheckpoints.java index bdeeab574f7..234bc7baafa 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestStandbyCheckpoints.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/namenode/ha/TestStandbyCheckpoints.java @@ -485,7 +485,7 @@ public class TestStandbyCheckpoints { for (int i = 0; i < NUM_NNS; i++) { // Once the standby catches up, it should do a checkpoint // and save to local directories. - HATestUtil.waitForCheckpoint(cluster, 1, ImmutableList.of(12)); + HATestUtil.waitForCheckpoint(cluster, i, ImmutableList.of(12)); } cluster.transitionToActive(0);