You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Vinayakumar B (JIRA)" <ji...@apache.org> on 2016/04/09 11:18:25 UTC

[jira] [Created] (HDFS-10273) Remove duplicate logSync() and log message in FSN#enterSafemode()

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)