فهرست منبع

HDFS-9919. TestStandbyCheckpoints#testNonPrimarySBNUploadFSImage waitForCheckpoint incorrectly. Contributed by Lin Yiqun.

Andrew Wang 9 سال پیش
والد
کامیت
a14a6f08ee

+ 1 - 1
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);