hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cnaur...@apache.org
Subject [1/4] hadoop git commit: Revert "HDFS-9569. Log the name of the fsimage being loaded for better supportability. Contributed by Yongjun Zhang."
Date Thu, 17 Dec 2015 21:55:53 GMT
Repository: hadoop
Updated Branches:
  refs/heads/branch-2 d9b9a7592 -> a40ff6d4f
  refs/heads/branch-2.7 4d2ee51c5 -> 56882e7b1
  refs/heads/branch-2.8 b11362fd2 -> 1e81e1f89
  refs/heads/trunk f5756a203 -> db37f02dc


Revert "HDFS-9569.  Log the name of the fsimage being loaded for better supportability. Contributed
by Yongjun Zhang."

This reverts commit 4d2ee51c52d371a10501a76f5bfc2d78a40e2083.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/56882e7b
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/56882e7b
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/56882e7b

Branch: refs/heads/branch-2.7
Commit: 56882e7b1c5992002e5c93a74c2ef87d35e3f106
Parents: 4d2ee51
Author: cnauroth <cnauroth@apache.org>
Authored: Thu Dec 17 13:49:47 2015 -0800
Committer: cnauroth <cnauroth@apache.org>
Committed: Thu Dec 17 13:49:47 2015 -0800

----------------------------------------------------------------------
 hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt                    | 3 ---
 .../java/org/apache/hadoop/hdfs/server/namenode/FSImage.java   | 6 +++---
 2 files changed, 3 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/56882e7b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
index f95eada..b7b3cda 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
+++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
@@ -11,9 +11,6 @@ Release 2.7.3 - UNRELEASED
     HDFS-8647. Abstract BlockManager's rack policy into BlockPlacementPolicy.
     (Brahma Reddy Battula via mingma)
 
-    HDFS-9569. Log the name of the fsimage being loaded for better
-    supportability (Yongjun Zhang via kihwal)
-
   OPTIMIZATIONS
 
   BUG FIXES

http://git-wip-us.apache.org/repos/asf/hadoop/blob/56882e7b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSImage.java
----------------------------------------------------------------------
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 475ae7e..5a7fbb1 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
@@ -675,8 +675,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;
       }
@@ -727,7 +727,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);
 


Mime
View raw message