Browse Source

HDFS-548. TestFsck takes nearly 10 minutes to run. Contributed by Hairong Kuang.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/hdfs/trunk@805480 13f79535-47bb-0310-9956-ffa450edef68
Hairong Kuang 16 years ago
parent
commit
b25ffccd1c
2 changed files with 3 additions and 0 deletions
  1. 2 0
      CHANGES.txt
  2. 1 0
      src/test/hdfs/org/apache/hadoop/hdfs/server/namenode/TestFsck.java

+ 2 - 0
CHANGES.txt

@@ -97,6 +97,8 @@ Trunk (unreleased changes)
     HDFS-457. Do not shutdown datanode if some, but not all, volumns fail.
     (Boris Shkolnik via szetszwo)
 
+    HDFS-548. TestFsck takes nearly 10 minutes to run. (hairong)
+
   BUG FIXES
 
     HDFS-76. Better error message to users when commands fail because of 

+ 1 - 0
src/test/hdfs/org/apache/hadoop/hdfs/server/namenode/TestFsck.java

@@ -162,6 +162,7 @@ public class TestFsck extends TestCase {
     try {
       Configuration conf = new Configuration();
       conf.setLong("dfs.blockreport.intervalMsec", 10000L);
+      conf.setInt("dfs.datanode.directoryscan.interval", 1);
       cluster = new MiniDFSCluster(conf, 4, true, null);
       String topDir = "/srcdat";
       fs = cluster.getFileSystem();