[
https://issues.apache.org/jira/browse/HDFS-2245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13082844#comment-13082844
]
Jitendra Nath Pandey commented on HDFS-2245:
--------------------------------------------
The comment on top of the testcase seems to be incorrect.
+1 otherwise.
> BlockManager.chooseTarget(..) throws NPE
> ----------------------------------------
>
> Key: HDFS-2245
> URL: https://issues.apache.org/jira/browse/HDFS-2245
> Project: Hadoop HDFS
> Issue Type: Bug
> Components: name-node
> Reporter: Tsz Wo (Nicholas), SZE
> Assignee: Tsz Wo (Nicholas), SZE
> Fix For: 0.23.0
>
> Attachments: h2245_20110810.patch
>
>
> {noformat}
> 2011-08-10 20:20:51,350 INFO org.apache.hadoop.ipc.Server: IPC Server handler
> 1 on 8020, call: addBlock(/user/had
> oopqa/passwd.1108102020.<NN hostname>.txt,
> DFSClient_NONMAPREDUCE_1875954430_1, null, null), rpc
> version=1, client version=68, methodsFingerPrint=-1239577025 from
> <gateway>:38874, error:
> java.io.IOException: java.lang.NullPointerException
> at
> org.apache.hadoop.hdfs.server.blockmanagement.BlockManager.chooseTarget(BlockManager.java:1225)
> at
> org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getAdditionalBlock(FSNamesystem.java:1455)
> at
> org.apache.hadoop.hdfs.server.namenode.NameNode.addBlock(NameNode.java:786)
> ...
> {noformat}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira