hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Shvachko (JIRA)" <j...@apache.org>
Subject [jira] Created: (HADOOP-3489) NPE in SafeModeMonitor
Date Wed, 04 Jun 2008 22:33:44 GMT
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 "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)
{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.


Mime
View raw message