浏览代码

HADOOP-1948. Removed spurious error message during block crc upgrade.
(Raghu Angadi via dhruba)



git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@581094 13f79535-47bb-0310-9956-ffa450edef68

Dhruba Borthakur 18 年之前
父节点
当前提交
60453313e2
共有 2 个文件被更改,包括 4 次插入1 次删除
  1. 3 0
      CHANGES.txt
  2. 1 1
      src/java/org/apache/hadoop/dfs/FSNamesystem.java

+ 3 - 0
CHANGES.txt

@@ -214,6 +214,9 @@ Trunk (unreleased changes)
     HADOOP-1930.  Fix the blame for failed fetchs on the right host. (Arun C.
     Murthy via omalley)
 
+    HADOOP-1948. Removed spurious error message during block crc upgrade.
+    (Raghu Angadi via dhruba)
+
   IMPROVEMENTS
 
     HADOOP-1908. Restructure data node code so that block sending and 

+ 1 - 1
src/java/org/apache/hadoop/dfs/FSNamesystem.java

@@ -480,7 +480,7 @@ class FSNamesystem implements FSConstants {
       }
     }
 
-    if ( crcInfo.blockLen <= 0 ) {
+    if ( crcInfo.blockLen < 0 ) {
       LOG.warn("blockCrcInfo(): " + block + 
                " could not be found in blocks for " + crcInfo.fileName);
       return crcInfo;