[ 
https://issues.apache.org/jira/browse/HADOOP-4840?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hairong Kuang updated HADOOP-4840:
----------------------------------

    Attachment: nodeCountNPE.patch

The error was caused by an unsynchronized access to the list of block 
locations. The patch fixed the problem.

> TestNodeCount sometimes fails with NullPointerException
> -------------------------------------------------------
>
>                 Key: HADOOP-4840
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4840
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: dfs
>    Affects Versions: 0.18.3
>            Reporter: Hairong Kuang
>            Assignee: Hairong Kuang
>             Fix For: 0.18.3
>
>         Attachments: nodeCountNPE.patch
>
>
> Testcase: testNodeCount took 9.628 sec
>         Caused an ERROR
> java.lang.NullPointerException
>         at 
> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.countNodes(FSNamesystem.java:3523)
>         at 
> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.countNodes(FSNamesystem.java:3543)
>         at 
> org.apache.hadoop.hdfs.server.namenode.TestNodeCount.testNodeCount(TestNodeCount.java:64)

-- 
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