From 228de3c987188fa3b75fcc176ae87dd2c586e53e Mon Sep 17 00:00:00 2001 From: Todd Lipcon Date: Thu, 3 Jan 2013 20:55:05 +0000 Subject: [PATCH] HDFS-4302. Fix fatal exception when starting NameNode with DEBUG logs. Contributed by Eugene Koontz. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1428590 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../apache/hadoop/hdfs/server/namenode/FSEditLogLoader.java | 4 ---- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 862c9f6c75..3c4e53f0f5 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -643,6 +643,9 @@ Release 2.0.3-alpha - Unreleased HDFS-4349. Add test for reading files from BackupNode. (shv) + HDFS-4302. Fix fatal exception when starting NameNode with DEBUG logs + (Eugene Koontz via todd) + BREAKDOWN OF HDFS-3077 SUBTASKS HDFS-3077. Quorum-based protocol for reading and writing edit logs. diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSEditLogLoader.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSEditLogLoader.java index 2fc772cdad..133a82821f 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSEditLogLoader.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSEditLogLoader.java @@ -122,10 +122,6 @@ long loadEditRecords(EditLogInputStream in, boolean closeOnExit, long lastLogTime = now(); long lastInodeId = fsNamesys.getLastInodeId(); - if (LOG.isDebugEnabled()) { - LOG.debug("edit log length: " + in.length() + ", start txid: " - + expectedStartingTxId + ", last txid: " + lastTxId); - } try { while (true) { try {