HDFS-10273. Remove duplicate logSync() and log message in FSN#enterSafemode() (Vinayakumar B via cmccabe)
(cherry picked from commit 600d129bb8d52ae820e7b74b8ce363aabd69d25c)
This commit is contained in:
parent
53c24e00e8
commit
6e37e40dd2
@ -4240,10 +4240,6 @@ void enterSafeMode(boolean resourcesLow) throws IOException {
|
||||
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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user