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:
parent
53c24e00e8
commit
6e37e40dd2
|
@ -4240,10 +4240,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