NPE in SafeModeMonitor
----------------------

                 Key: HADOOP-3489
                 URL: https://issues.apache.org/jira/browse/HADOOP-3489
             Project: Hadoop Core
          Issue Type: Bug
          Components: dfs
    Affects Versions: 0.18.0
            Reporter: Konstantin Shvachko
             Fix For: 0.18.0


If dfsadmin issues -safemode leave command when name-node is in the extended 
period of safe mode the SafeModeMonitor throws the following exception:
{code}
Exception in thread "[EMAIL PROTECTED]" java.lang.NullPointerException
        at 
org.apache.hadoop.dfs.FSNamesystem$SafeModeMonitor.run(FSNamesystem.java:3914)
        at java.lang.Thread.run(Thread.java:619)
{code}
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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to