hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmcc...@apache.org
Subject hadoop git commit: HDFS-10273. Remove duplicate logSync() and log message in FSN#enterSafemode() (Vinayakumar B via cmccabe)
Date Tue, 12 Apr 2016 17:55:26 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk 437e9d647 -> 600d129bb


HDFS-10273. Remove duplicate logSync() and log message in FSN#enterSafemode() (Vinayakumar
B via cmccabe)


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

Branch: refs/heads/trunk
Commit: 600d129bb8d52ae820e7b74b8ce363aabd69d25c
Parents: 437e9d6
Author: Colin Patrick Mccabe <cmccabe@cloudera.com>
Authored: Tue Apr 12 10:52:39 2016 -0700
Committer: Colin Patrick Mccabe <cmccabe@cloudera.com>
Committed: Tue Apr 12 10:52:39 2016 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java     | 4 ----
 1 file changed, 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/600d129b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
----------------------------------------------------------------------
diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
index 681fc96..00e1241 100644
--- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
+++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java
@@ -4279,10 +4279,6 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean,
       setManualAndResourceLowSafeMode(!resourcesLow, resourcesLow);
       NameNode.stateChangeLog.info("STATE* Safe mode is ON.\n" +
           getSafeModeTip());
-      if (isEditlogOpenForWrite) {
-        getEditLog().logSyncAll();
-      }
-      NameNode.stateChangeLog.info("STATE* Safe mode is ON" + getSafeModeTip());
     } finally {
       writeUnlock();
     }


Mime
View raw message