From 6e37e40dd27cd938ab954a9109c14580baa3da38 Mon Sep 17 00:00:00 2001 From: Colin Patrick Mccabe Date: Tue, 12 Apr 2016 10:52:39 -0700 Subject: [PATCH] HDFS-10273. Remove duplicate logSync() and log message in FSN#enterSafemode() (Vinayakumar B via cmccabe) (cherry picked from commit 600d129bb8d52ae820e7b74b8ce363aabd69d25c) --- .../org/apache/hadoop/hdfs/server/namenode/FSNamesystem.java | 4 ---- 1 file changed, 4 deletions(-) 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 5215d840e74..428f8fba15d 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 @@ -4240,10 +4240,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(); }