Vinayakumar B created HDFS-10273: ------------------------------------ Summary: Remove duplicate logSync() and log message in FSN#enterSafemode() Key: HDFS-10273 URL: https://issues.apache.org/jira/browse/HDFS-10273 Project: Hadoop HDFS Issue Type: Bug Reporter: Vinayakumar B Assignee: Vinayakumar B Priority: Minor
Remove duplicate logSync() and log message in FSN#enterSafemode() {code:title=FSN#enterSafemode(..)} // Before Editlog is in OpenForWrite mode, editLogStream will be null. So, // logSyncAll call can be called only when Edlitlog is in OpenForWrite mode if (isEditlogOpenForWrite) { getEditLog().logSyncAll(); } 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()); {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)