Skip to content

Commit

Permalink
fix test timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
tclxgf13871 committed Feb 9, 2023
1 parent 2c092db commit 845d053
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
Expand Up @@ -32,7 +32,7 @@ public class TestFileLengthOnClusterRestart {
* Tests the fileLength when we sync the file and restart the cluster and
* Datanodes not report to Namenode yet.
*/
@Test(timeout = 60000)
@Test(timeout = 120000)
public void testFileLengthWithHSyncAndClusterRestartWithOutDNsRegister()
throws Exception {
final Configuration conf = new HdfsConfiguration();
Expand Down
Expand Up @@ -493,17 +493,17 @@ public void testSoftLeaseRecovery() throws Exception {
*
* @throws Exception
*/
@Test(timeout = 30000)
@Test(timeout = 60000)
public void testHardLeaseRecoveryAfterNameNodeRestart() throws Exception {
hardLeaseRecoveryRestartHelper(false, -1);
}

@Test(timeout = 30000)
@Test(timeout = 60000)
public void testHardLeaseRecoveryAfterNameNodeRestart2() throws Exception {
hardLeaseRecoveryRestartHelper(false, 1535);
}

@Test(timeout = 30000)
@Test(timeout = 60000)
public void testHardLeaseRecoveryWithRenameAfterNameNodeRestart()
throws Exception {
hardLeaseRecoveryRestartHelper(true, -1);
Expand Down
Expand Up @@ -167,7 +167,7 @@ public void testBalancerServiceBalanceTwice() throws Exception {
}
}

@Test(timeout = 60000)
@Test(timeout = 120000)
public void testBalancerServiceOnError() throws Exception {
Configuration conf = new HdfsConfiguration();
// retry for every 5 seconds
Expand Down
Expand Up @@ -210,7 +210,7 @@ public void testWriteOverGracefulFailoverWithDnFail() throws Exception {
doTestWriteOverFailoverWithDnFail(TestScenario.GRACEFUL_FAILOVER);
}

@Test(timeout=30000)
@Test(timeout=60000)
public void testWriteOverCrashFailoverWithDnFail() throws Exception {
doTestWriteOverFailoverWithDnFail(TestScenario.ORIGINAL_ACTIVE_CRASHED);
}
Expand Down
Expand Up @@ -548,7 +548,7 @@ public void testSnapshotOpsOnReservedPath() throws Exception {
* paths work and the NN can load the resulting edits. This test if for
* snapshots at the root level.
*/
@Test(timeout = 60000)
@Test(timeout = 120000)
public void testSnapshotOpsOnRootReservedPath() throws Exception {
Path dir = new Path("/");
Path sub = new Path(dir, "sub");
Expand Down

0 comments on commit 845d053

Please sign in to comment.