|
@@ -67,6 +67,7 @@ public class TestFsck extends TestCase {
|
|
|
FileSystem fs = null;
|
|
|
try {
|
|
|
Configuration conf = new Configuration();
|
|
|
+ conf.setLong("dfs.blockreport.intervalMsec", 10000L);
|
|
|
cluster = new MiniDFSCluster(conf, 4, true, null);
|
|
|
fs = cluster.getFileSystem();
|
|
|
util.createFiles(fs, "/srcdat");
|
|
@@ -102,6 +103,7 @@ public class TestFsck extends TestCase {
|
|
|
FileSystem fs = null;
|
|
|
try {
|
|
|
Configuration conf = new Configuration();
|
|
|
+ conf.setLong("dfs.blockreport.intervalMsec", 10000L);
|
|
|
cluster = new MiniDFSCluster(conf, 4, true, null);
|
|
|
fs = cluster.getFileSystem();
|
|
|
util.createFiles(fs, "/srcdat");
|
|
@@ -122,7 +124,7 @@ public class TestFsck extends TestCase {
|
|
|
FileSystem fs = null;
|
|
|
try {
|
|
|
Configuration conf = new Configuration();
|
|
|
- conf.set("dfs.blockreport.intervalMsec", Integer.toString(30));
|
|
|
+ conf.setLong("dfs.blockreport.intervalMsec", 10000L);
|
|
|
cluster = new MiniDFSCluster(conf, 4, true, null);
|
|
|
String topDir = "/srcdat";
|
|
|
fs = cluster.getFileSystem();
|
|
@@ -179,6 +181,7 @@ public class TestFsck extends TestCase {
|
|
|
FileSystem fs = null;
|
|
|
try {
|
|
|
Configuration conf = new Configuration();
|
|
|
+ conf.setLong("dfs.blockreport.intervalMsec", 10000L);
|
|
|
cluster = new MiniDFSCluster(conf, 4, true, null);
|
|
|
String topDir = "/srcdat";
|
|
|
String randomString = "HADOOP ";
|