Forráskód Böngészése

HDFS-4252. Improve confusing log message that prints exception when editlog read is completed. Contributed by Jing Zhao.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-1@1415879 13f79535-47bb-0310-9956-ffa450edef68
Suresh Srinivas 12 éve
szülő
commit
00eb6c5b25

+ 3 - 0
CHANGES.txt

@@ -124,6 +124,9 @@ Release 1.2.0 - unreleased
     HDFS-4122. Cleanup HDFS logs and reduce the size of logged messages.
     (suresh)
 
+    HDFS-4252. Improve confusing log message that prints exception when editlog 
+    read is completed. (Jing Zhao via suresh)
+
   OPTIMIZATIONS
 
     HDFS-2533. Backport: Remove needless synchronization on some FSDataSet

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

@@ -688,7 +688,9 @@ public class FSEditLog {
             break; // no more transactions
           }
         } catch (EOFException e) {
-          LOG.info("Reading " + edits.getName() + ": " + e);
+          LOG.info("EOF of " + edits.getName() + ", reached end of edit log "
+              + "Number of transactions found: " + numEdits + ".  "
+              + "Bytes read: " + tracker.getPos());
           break; // no more transactions
         }
         recentOpcodeOffsets[numEdits % recentOpcodeOffsets.length] =