Pārlūkot izejas kodu

HDFS-1211. Block receiver should not log "rewind" packets at INFO level.
(Todd Lipcon via dhruba)



git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-append@955452 13f79535-47bb-0310-9956-ffa450edef68

Dhruba Borthakur 15 gadi atpakaļ
vecāks
revīzija
5f3c9343c5

+ 3 - 0
CHANGES.txt

@@ -62,6 +62,9 @@ Release 0.20-append - 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 via dhruba)
+
 Release 0.20.3 - Unreleased
 
   NEW FEATURES

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

@@ -628,10 +628,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);