HDFS-10273. Remove duplicate logSync() and log message in FSN#enterSafemode() (Vinayakumar B via cmccabe)
This commit is contained in:
parent
437e9d6475
commit
600d129bb8
|
@ -4279,10 +4279,6 @@ public class FSNamesystem implements Namesystem, FSNamesystemMBean,
|
||||||
setManualAndResourceLowSafeMode(!resourcesLow, resourcesLow);
|
setManualAndResourceLowSafeMode(!resourcesLow, resourcesLow);
|
||||||
NameNode.stateChangeLog.info("STATE* Safe mode is ON.\n" +
|
NameNode.stateChangeLog.info("STATE* Safe mode is ON.\n" +
|
||||||
getSafeModeTip());
|
getSafeModeTip());
|
||||||
if (isEditlogOpenForWrite) {
|
|
||||||
getEditLog().logSyncAll();
|
|
||||||
}
|
|
||||||
NameNode.stateChangeLog.info("STATE* Safe mode is ON" + getSafeModeTip());
|
|
||||||
} finally {
|
} finally {
|
||||||
writeUnlock();
|
writeUnlock();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue