Skip to content

Commit 486a31c

Browse files
committed
fix rolling upgrade unit test.
1 parent 571ba38 commit 486a31c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestRollingUpgrade.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ private static Configuration setConf(Configuration conf, File dir,
169169
return conf;
170170
}
171171

172-
@Test (timeout = 30000)
172+
@Test (timeout = 300000)
173173
public void testRollingUpgradeWithQJM() throws Exception {
174174
String nnDirPrefix = MiniDFSCluster.getBaseDirectory() + "/nn/";
175175
final File nn1Dir = new File(nnDirPrefix + "image1");
@@ -601,7 +601,7 @@ public void testCheckpointWithMultipleNN() throws IOException, InterruptedExcept
601601
testCheckpoint(3);
602602
}
603603

604-
@Test(timeout = 60000)
604+
@Test(timeout = 300000)
605605
public void testRollBackImage() throws Exception {
606606
final Configuration conf = new HdfsConfiguration();
607607
conf.setInt(DFSConfigKeys.DFS_NAMENODE_CHECKPOINT_TXNS_KEY, 10);

0 commit comments

Comments
 (0)