소스 검색

HDFS-8845. DiskChecker should not traverse the entire tree (Chang Li via Colin P. McCabe)

(cherry picked from commit ec183faadcf7edaf432aca3b25d24215d505c2ec)
(cherry picked from commit a4492dc6ac67d1234853fb3731c6d1a7bce0e409)
Kihwal Lee 9 년 전
부모
커밋
54b408a326

+ 3 - 0
hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt

@@ -19,6 +19,9 @@ Release 2.6.5 - UNRELEASED
 
   OPTIMIZATIONS
 
+    HDFS-8845. DiskChecker should not traverse the entire tree (Chang Li via
+    Colin P. McCabe)
+
   BUG FIXES
 
     HDFS-9347. Invariant assumption in TestQuorumJournalManager.shutdown()

+ 1 - 1
hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/BlockPoolSlice.java

@@ -297,7 +297,7 @@ class BlockPoolSlice {
   }
 
   void checkDirs() throws DiskErrorException {
-    DiskChecker.checkDirs(finalizedDir);
+    DiskChecker.checkDir(finalizedDir);
     DiskChecker.checkDir(tmpDir);
     DiskChecker.checkDir(rbwDir);
   }