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

This commit is contained in:
Andrew Wang 2016-03-08 11:51:06 -08:00
parent 743a99f2db
commit a14a6f08ee

View File

@ -485,7 +485,7 @@ public void testNonPrimarySBNUploadFSImage() throws Exception {
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);