Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.18.0
-
None
-
None
-
Reviewed
Description
If dfsadmin issues -safemode leave command when name-node is in the extended period of safe mode the SafeModeMonitor throws the following exception:
Exception in thread "org.apache.hadoop.dfs.FSNamesystem$SafeModeMonitor@dc86eb" java.lang.NullPointerException at org.apache.hadoop.dfs.FSNamesystem$SafeModeMonitor.run(FSNamesystem.java:3914) at java.lang.Thread.run(Thread.java:619)
The problem is that when SafeModeMonitor.run() wakes up it tries to check whether it canLeave() the safe mode, but the safe mode is off already,
and therefore the "safemode" field is null.