|
@@ -55,7 +55,7 @@ public class TestListCorruptFileBlocks {
|
|
|
static Log LOG = NameNode.stateChangeLog;
|
|
|
|
|
|
/** check if nn.getCorruptFiles() returns a file that has corrupted blocks */
|
|
|
- @Test
|
|
|
+ @Test (timeout=300000)
|
|
|
public void testListCorruptFilesCorruptedBlock() throws Exception {
|
|
|
MiniDFSCluster cluster = null;
|
|
|
Random random = new Random();
|
|
@@ -131,7 +131,7 @@ public class TestListCorruptFileBlocks {
|
|
|
/**
|
|
|
* Check that listCorruptFileBlocks works while the namenode is still in safemode.
|
|
|
*/
|
|
|
- @Test
|
|
|
+ @Test (timeout=300000)
|
|
|
public void testListCorruptFileBlocksInSafeMode() throws Exception {
|
|
|
MiniDFSCluster cluster = null;
|
|
|
Random random = new Random();
|
|
@@ -262,7 +262,7 @@ public class TestListCorruptFileBlocks {
|
|
|
}
|
|
|
|
|
|
// deliberately remove blocks from a file and validate the list-corrupt-file-blocks API
|
|
|
- @Test
|
|
|
+ @Test (timeout=300000)
|
|
|
public void testlistCorruptFileBlocks() throws Exception {
|
|
|
Configuration conf = new Configuration();
|
|
|
conf.setLong(DFSConfigKeys.DFS_BLOCKREPORT_INTERVAL_MSEC_KEY, 1000);
|
|
@@ -372,7 +372,7 @@ public class TestListCorruptFileBlocks {
|
|
|
/**
|
|
|
* test listCorruptFileBlocks in DistributedFileSystem
|
|
|
*/
|
|
|
- @Test
|
|
|
+ @Test (timeout=300000)
|
|
|
public void testlistCorruptFileBlocksDFS() throws Exception {
|
|
|
Configuration conf = new Configuration();
|
|
|
conf.setLong(DFSConfigKeys.DFS_BLOCKREPORT_INTERVAL_MSEC_KEY, 1000);
|
|
@@ -445,7 +445,7 @@ public class TestListCorruptFileBlocks {
|
|
|
* Also, test that DFS.listCorruptFileBlocks can make multiple successive
|
|
|
* calls.
|
|
|
*/
|
|
|
- @Test
|
|
|
+ @Test (timeout=300000)
|
|
|
public void testMaxCorruptFiles() throws Exception {
|
|
|
MiniDFSCluster cluster = null;
|
|
|
try {
|