HDFS-9904. testCheckpointCancellationDuringUpload occasionally fails. Contributed by Lin Yiqun.
(cherry picked from commit d4574017845cfa7521e703f80efd404afd09b8c4)
This commit is contained in:
parent
d595429538
commit
8b00d9de25
@ -284,6 +284,11 @@ public void testCheckpointCancellation() throws Exception {
|
||||
*/
|
||||
@Test(timeout=60000)
|
||||
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
|
||||
cluster.getConfiguration(0).setBoolean(
|
||||
DFSConfigKeys.DFS_IMAGE_COMPRESS_KEY, false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user