From 1e81e1f89199b375e4ed020d5c1fcae588d5f3ca Mon Sep 17 00:00:00 2001 From: cnauroth Date: Thu, 17 Dec 2015 13:50:02 -0800 Subject: [PATCH] Revert "HDFS-9569. Log the name of the fsimage being loaded for better supportability. Contributed by Yongjun Zhang." This reverts commit a8dc35dfdf9f3ab82d88a7ef2d03e172d594499b. --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 --- .../org/apache/hadoop/hdfs/server/namenode/FSImage.java | 6 +++--- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 17e7218978c..b56ccbc5c02 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -1605,9 +1605,6 @@ Release 2.7.3 - UNRELEASED IMPROVEMENTS - HDFS-9569. Log the name of the fsimage being loaded for better - supportability (Yongjun Zhang via kihwal) - OPTIMIZATIONS BUG FIXES diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSImage.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSImage.java index 224d2c1b74a..085c0f8081e 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSImage.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSImage.java @@ -671,8 +671,8 @@ public class FSImage implements Closeable { imageFile = imageFiles.get(i); loadFSImageFile(target, recovery, imageFile, startOpt); break; - } catch (Exception e) { - LOG.error("Failed to load image from " + imageFile, e); + } catch (IOException ioe) { + LOG.error("Failed to load image from " + imageFile, ioe); target.clear(); imageFile = null; } @@ -725,7 +725,7 @@ public class FSImage implements Closeable { void loadFSImageFile(FSNamesystem target, MetaRecoveryContext recovery, FSImageFile imageFile, StartupOption startupOption) throws IOException { - LOG.info("Planning to load image: " + imageFile); + LOG.debug("Planning to load image :\n" + imageFile); StorageDirectory sdForProperties = imageFile.sd; storage.readProperties(sdForProperties, startupOption);