[
https://issues.apache.org/jira/browse/HDFS-1502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13022998#comment-13022998
]
Hudson commented on HDFS-1502:
------------------------------
Integrated in Hadoop-Hdfs-22-branch #35 (See
[https://builds.apache.org/hudson/job/Hadoop-Hdfs-22-branch/35/])
> TestBlockRecovery triggers NPE in assert
> ----------------------------------------
>
> Key: HDFS-1502
> URL: https://issues.apache.org/jira/browse/HDFS-1502
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 0.22.0
> Reporter: Eli Collins
> Assignee: Hairong Kuang
> Priority: Minor
> Fix For: 0.22.0, 0.23.0
>
> Attachments: HDFS-1502.patch, fixTestBlockRecovery.patch
>
>
> {noformat}
> Testcase: testRBW_RWRReplicas took 10.333 sec
> Caused an ERROR
> null
> java.lang.NullPointerException
> at
> org.apache.hadoop.hdfs.server.datanode.DataNode.syncBlock(DataNode.java:1881)
> at
> org.apache.hadoop.hdfs.server.datanode.TestBlockRecovery.testSyncReplicas(TestBlockRecovery.java:144)
> at
> org.apache.hadoop.hdfs.server.datanode.TestBlockRecovery.testRBW_RWRReplicas(TestBlockRecovery.java:305)
> {noformat}
> {noformat}
> Block reply = r.datanode.updateReplicaUnderRecovery(
> r.rInfo, recoveryId, newBlock.getNumBytes());
> assert reply.equals(newBlock) &&
> reply.getNumBytes() == newBlock.getNumBytes() :
> "Updated replica must be the same as the new block."; <-----
> line 1881
> {noformat}
> Not sure how reply could be null since updateReplicaUnderRecovery always
> returns a newly instantiated object.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira