HDFS-4810. several HDFS HA tests have timeouts that are too short. Contributed by Chris Nauroth.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1480841 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Aaron Myers 2013-05-10 00:16:18 +00:00
parent 742707d621
commit 7e5b63af13
3 changed files with 7 additions and 4 deletions

View File

@ -975,6 +975,9 @@ Release 2.0.5-beta - UNRELEASED
HDFS-4784. NPE in FSDirectory.resolvePath(). (Brandon Li via suresh)
HDFS-4810. several HDFS HA tests have timeouts that are too short. (Chris
Nauroth via atm)
Release 2.0.4-alpha - 2013-04-25
INCOMPATIBLE CHANGES

View File

@ -121,7 +121,7 @@ public void shutdown() throws Exception {
* Test that automatic failover is triggered by shutting the
* active NN down.
*/
@Test(timeout=30000)
@Test(timeout=60000)
public void testFailoverAndBackOnNNShutdown() throws Exception {
Path p1 = new Path("/dir1");
Path p2 = new Path("/dir2");
@ -191,7 +191,7 @@ public Boolean get() {
return false;
}
}
}, 50, 5000);
}, 50, 15000);
}
/**

View File

@ -245,7 +245,7 @@ public void testCheckpointCancellation() throws Exception {
* checkpoint is in progress on the SBN, and therefore the StandbyCheckpointer
* thread will have FSNS lock. Regression test for HDFS-4591.
*/
@Test(timeout=120000)
@Test(timeout=300000)
public void testStandbyExceptionThrownDuringCheckpoint() throws Exception {
// Set it up so that we know when the SBN checkpoint starts and ends.
@ -256,7 +256,7 @@ public void testStandbyExceptionThrownDuringCheckpoint() throws Exception {
Mockito.any(Canceler.class));
// Perform some edits and wait for a checkpoint to start on the SBN.
doEdits(0, 2000);
doEdits(0, 1000);
nn0.getRpcServer().rollEditLog();
answerer.waitForCall();
answerer.proceed();