HDFS-9904. testCheckpointCancellationDuringUpload occasionally fails. Contributed by Lin Yiqun.

This commit is contained in:
Kihwal Lee 2016-03-15 10:52:47 -05:00
parent 5de848cd5d
commit d457401784
1 changed files with 5 additions and 0 deletions

View File

@ -291,6 +291,11 @@ public class TestStandbyCheckpoints {
*/ */
@Test(timeout=60000) @Test(timeout=60000)
public void testCheckpointCancellationDuringUpload() throws Exception { public void testCheckpointCancellationDuringUpload() throws Exception {
// Set dfs.namenode.checkpoint.txns differently on the first NN to avoid it
// doing checkpoint when it becomes a standby
cluster.getConfiguration(0).setInt(
DFSConfigKeys.DFS_NAMENODE_CHECKPOINT_TXNS_KEY, 1000);
// don't compress, we want a big image // don't compress, we want a big image
for (int i = 0; i < NUM_NNS; i++) { for (int i = 0; i < NUM_NNS; i++) {
cluster.getConfiguration(i).setBoolean( cluster.getConfiguration(i).setBoolean(