diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index e444cf32a9..8e10c75c5f 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -298,6 +298,8 @@ Branch-2 ( Unreleased changes ) HDFS-3613. GSet prints some INFO level values, which aren't really very useful to all (Andrew Wang via harsh) + HDFS-3611. NameNode prints unnecessary WARNs about edit log normally skipping a few bytes. (Colin Patrick McCabe via harsh) + OPTIMIZATIONS HDFS-2982. Startup performance suffers when there are many edit log diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/EditLogFileInputStream.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/EditLogFileInputStream.java index c1a92d1627..19604154b0 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/EditLogFileInputStream.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/EditLogFileInputStream.java @@ -194,9 +194,11 @@ private FSEditLogOp nextOpImpl(boolean skipBrokenEdits) throws IOException { // long skipAmt = log.length() - tracker.getPos(); if (skipAmt > 0) { - LOG.warn("skipping " + skipAmt + " bytes at the end " + - "of edit log '" + getName() + "': reached txid " + txId + - " out of " + lastTxId); + if (LOG.isDebugEnabled()) { + LOG.debug("skipping " + skipAmt + " bytes at the end " + + "of edit log '" + getName() + "': reached txid " + txId + + " out of " + lastTxId); + } tracker.clearLimit(); IOUtils.skipFully(tracker, skipAmt); }