hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vinayakumar B (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-10273) Remove duplicate logSync() and log message in FSN#enterSafemode()
Date Sat, 09 Apr 2016 09:18:25 GMT
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)

Mime
View raw message