瀏覽代碼

HDFS-1211. Block receiver should not log "rewind" packets at INFO level. Contributed by Todd Lipcon.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security@1160448 13f79535-47bb-0310-9956-ffa450edef68
Jitendra Nath Pandey 14 年之前
父節點
當前提交
0f7c84e54a
共有 2 個文件被更改,包括 6 次插入1 次删除
  1. 3 0
      CHANGES.txt
  2. 3 1
      src/hdfs/org/apache/hadoop/hdfs/server/datanode/BlockReceiver.java

+ 3 - 0
CHANGES.txt

@@ -87,6 +87,9 @@ Release 0.20.205.0 - unreleased
 
     HDFS-1210. DFSClient should log exception when block recovery fails.
     (Todd Lipcon via dhruba)
+ 
+    HDFS-1211. Block receiver should not log "rewind" packets at INFO level.
+    (Todd Lipcon)
 
 Release 0.20.204.0 - unreleased
 

+ 3 - 1
src/hdfs/org/apache/hadoop/hdfs/server/datanode/BlockReceiver.java

@@ -627,10 +627,12 @@ class BlockReceiver implements java.io.Closeable, FSConstants {
       computePartialChunkCrc(offsetInBlock, offsetInChecksum, bytesPerChecksum);
     }
 
-    LOG.info("Changing block file offset of block " + block + " from " + 
+    if (LOG.isDebugEnabled()) {
+      LOG.debug("Changing block file offset of block " + block + " from " + 
         datanode.data.getChannelPosition(block, streams) +
              " to " + offsetInBlock +
              " meta file offset to " + offsetInChecksum);
+    }
 
     // set the position of the block file
     datanode.data.setChannelPosition(block, streams, offsetInBlock, offsetInChecksum);