浏览代码

Move the change log of HADOOP-4526 from trunk to the branch 0.18.2

git-svn-id: https://svn.apache.org/repos/asf/hadoop/core/branches/branch-0.18@708720 13f79535-47bb-0310-9956-ffa450edef68
Hairong Kuang 16 年之前
父节点
当前提交
81fe85251b
共有 2 个文件被更改,包括 7 次插入2 次删除
  1. 4 2
      CHANGES.txt
  2. 3 0
      src/hdfs/org/apache/hadoop/dfs/NamenodeFsck.java

+ 4 - 2
CHANGES.txt

@@ -10,7 +10,7 @@ Release 0.18.2 - Unreleased
     HADOOP-4314. Simulated datanodes should not include blocks that are still
     being written in their block report. (Raghu Angadi)
 
-    HADOOP-4228. dfs datanoe metrics, bytes_read and bytes_written, overflow
+    HADOOP-4228. dfs datanode metrics, bytes_read and bytes_written, overflow
     due to incorrect type used. (hairong)
 
     HADOOP-4395. The FSEditLog loading is incorrect for the case OP_SET_OWNER.
@@ -35,7 +35,7 @@ Release 0.18.2 - Unreleased
     HADOOP-4469. Rename and add the ant task jar file to the tar file. (nigel)
 
     HADOOP-3914. DFSClient sends Checksum Ok only once for a block.
-    (Christain Kunz via hairong)
+    (Christian Kunz via hairong)
 
     HADOOP-4467. SerializationFactory now uses the current context ClassLoader
     allowing for user supplied Serialization instances. (Chris Wensel via
@@ -44,6 +44,8 @@ Release 0.18.2 - Unreleased
     HADOOP-4517. Release FSDataset lock before joining ongoing create threads.
     (szetszwo)
  
+    HADOOP-4526. fsck failing with NullPointerException. (hairong)
+
   NEW FEATURES
 
     HADOOP-2421.  Add jdiff output to documentation, listing all API

+ 3 - 0
src/hdfs/org/apache/hadoop/dfs/NamenodeFsck.java

@@ -165,6 +165,9 @@ public class NamenodeFsck {
     }
     long fileLen = file.getLen();
     LocatedBlocks blocks = nn.namesystem.getBlockLocations(path, 0, fileLen);
+    if (blocks == null) { // the file is deleted
+      return;
+    }
     isOpen = blocks.isUnderConstruction();
     if (isOpen && !showOpenFiles) {
       // We collect these stats about open files to report with default options