Skip to content

Commit 0636bc4

Browse files
aswinmprabhuAswin M Prabhu
authored andcommitted
Bump timeout for unit test to figure out diff b/w local and CI envs
1 parent 08ce676 commit 0636bc4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/qjournal/server/TestJournalNodeSync.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ public void testSyncDuringRollingUpgrade() throws Exception {
480480
}
481481
}
482482

483-
@Test(timeout=300_000)
483+
@Test(timeout=900_000)
484484
public void testFormatWithSyncer() throws Exception {
485485
File firstJournalDir = jCluster.getJournalDir(0, jid);
486486
File firstJournalCurrentDir = new StorageDirectory(firstJournalDir)
@@ -499,11 +499,11 @@ public void testFormatWithSyncer() throws Exception {
499499
jCluster.getJournalNode(0).getOrCreateJournal(jid).getStorage().analyzeStorage();
500500

501501
// Wait for JN formatting with Syncer
502-
GenericTestUtils.waitFor(jnFormatted(0), 500, 30000);
502+
GenericTestUtils.waitFor(jnFormatted(0), 500, 90000);
503503
// Generate some more edit log so that the JN updates its committed tx id
504504
generateEditLog();
505505
// Check that the missing edit logs have been synced
506-
GenericTestUtils.waitFor(editLogExists(missingLogs), 500, 30000);
506+
GenericTestUtils.waitFor(editLogExists(missingLogs), 500, 90000);
507507
}
508508

509509
private File deleteEditLog(File currentDir, long startTxId)

0 commit comments

Comments
 (0)