Details
Description
To reproduce the issue:
$ bin/hdfs dfsrouteradmin -safemode enter
Successfully enter safe mode.
$ bin/hdfs dfsrouteradmin -safemode get
Safe Mode: true
And then,
$ bin/hdfs dfsrouteradmin -safemode get
Safe Mode: false
From the code, it looks like the periodicInvoke triggers the leave.
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(); } }
Attachments
Attachments
Issue Links
- is related to
-
HDFS-13068 RBF: Add router admin option to manage safe mode
- Resolved