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

(cherry picked from commit 600d129bb8)
This commit is contained in:
Colin Patrick Mccabe 2016-04-12 10:52:39 -07:00
parent 53c24e00e8
commit 6e37e40dd2
1 changed files with 0 additions and 4 deletions

View File

@ -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();
}