hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Wei Yan (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HDFS-13475) RBF: Router always leaves SafeMode after some time even manually entering SafeMode
Date Wed, 18 Apr 2018 17:28:00 GMT
Wei Yan created HDFS-13475:
------------------------------

             Summary: RBF: Router always leaves SafeMode after some time even manually entering
SafeMode
                 Key: HDFS-13475
                 URL: https://issues.apache.org/jira/browse/HDFS-13475
             Project: Hadoop HDFS
          Issue Type: Sub-task
            Reporter: Wei Yan
            Assignee: Wei Yan


To reproduce the issue: 
{code:java}
$ bin/hdfs dfsrouteradmin -safemode enter
Successfully enter safe mode.
$ bin/hdfs dfsrouteradmin -safemode get
Safe Mode: true{code}
And then, 
{code:java}
$ bin/hdfs dfsrouteradmin -safemode get
Safe Mode: false{code}
>From the code, it looks like the periodicInvoke triggers the leave.
{code:java}
public void periodicInvoke() {
......
  // Always update to indicate our cache was updated
  if (isCacheStale) {
    if (!rpcServer.isInSafeMode()) {
      enter();
    }
  } else if (rpcServer.isInSafeMode()) {
    // Cache recently updated, leave safe mode
    leave();
  }
}
{code}
 

 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message