[
https://issues.apache.org/jira/browse/HADOOP-1092?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12479440
]
Hairong Kuang commented on HADOOP-1092:
---------------------------------------
Dhruba did not post my first comment. :-)
The problem can be solved by updating neededRepliction before we remove the
block from the blockMap.
> NullPointerException in HeartbeatMonitor thread
> -----------------------------------------------
>
> Key: HADOOP-1092
> URL: https://issues.apache.org/jira/browse/HADOOP-1092
> Project: Hadoop
> Issue Type: Bug
> Components: dfs
> Affects Versions: 0.12.0
> Reporter: Nigel Daley
> Assigned To: Hairong Kuang
> Priority: Blocker
> Fix For: 0.12.1
>
>
> Running NNBench with latest trunk, I saw this NPE in the Namenode log:
> Exception in thread "[EMAIL PROTECTED]" java.lang.NullPointerException
> at
> org.apache.hadoop.dfs.FSNamesystem.countContainingNodes(FSNamesystem.java:2506)
> at org.apache.hadoop.dfs.FSNamesystem.access$000(FSNamesystem.java:52)
> at
> org.apache.hadoop.dfs.FSNamesystem$UnderReplicationBlocks.update(FSNamesystem.java:456)
> at
> org.apache.hadoop.dfs.FSNamesystem.removeStoredBlock(FSNamesystem.java:2242)
> at
> org.apache.hadoop.dfs.FSNamesystem.removeDatanode(FSNamesystem.java:1876)
> at
> org.apache.hadoop.dfs.FSNamesystem.heartbeatCheck(FSNamesystem.java:1958)
> at
> org.apache.hadoop.dfs.FSNamesystem$HeartbeatMonitor.run(FSNamesystem.java:1698)
> at java.lang.Thread.run(Thread.java:619)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.