浏览代码

HDFS-2673. While Namenode processing the blocksBeingWrittenReport, it will log incorrect number blocks count. Contributed by Uma Maheswara Rao G.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1.0@1214675 13f79535-47bb-0310-9956-ffa450edef68
Matthew Foley 13 年之前
父节点
当前提交
d6cd02dac5
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 3 0
      CHANGES.txt
  2. 1 1
      src/hdfs/org/apache/hadoop/hdfs/server/namenode/NameNode.java

+ 3 - 0
CHANGES.txt

@@ -61,6 +61,9 @@ Release 1.0.0 - 2011.11.27
 
   BUG FIXES
 
+    HDFS-2673. While Namenode processing the blocksBeingWrittenReport, 
+    it will log incorrect number blocks count. (Uma Maheswara via mattf)
+
     MAPREDUCE-3319. Hadoop example "multifilewc" broken in 0.20.205.0.
     (Subroto Sanyal via mattf)
 

+ 1 - 1
src/hdfs/org/apache/hadoop/hdfs/server/namenode/NameNode.java

@@ -1015,7 +1015,7 @@ public class NameNode implements ClientProtocol, DatanodeProtocol,
     namesystem.processBlocksBeingWrittenReport(nodeReg, blist);
     
     stateChangeLog.info("*BLOCK* NameNode.blocksBeingWrittenReport: "
-           +"from "+nodeReg.getName()+" "+blocks.length +" blocks");
+           +"from "+nodeReg.getName()+" "+blist.getNumberOfBlocks() +" blocks");
     
   }