Issue Details (XML | Word | Printable)

Key: HADOOP-3489
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Lohit Vijayarenu
Reporter: Konstantin Shvachko
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hadoop Common

NPE in SafeModeMonitor

Created: 04/Jun/08 10:32 PM   Updated: 08/Jul/09 04:43 PM
Component/s: None
Affects Version/s: 0.18.0
Fix Version/s: 0.18.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works HADOOP-3489-1.patch 2008-06-06 09:40 PM Lohit Vijayarenu 0.5 kB

Hadoop Flags: Reviewed
Resolution Date: 07/Jun/08 12:02 AM


 Description  « Hide
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.



 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
No work has yet been logged on this issue.