[ https://issues.apache.org/jira/browse/HDFS-676?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12764245#action_12764245 ]
Konstantin Shvachko commented on HDFS-676: ------------------------------------------ > Is the patch missing DataNode changes? Changes in DataNode were not required because I renamed {{FSDataset.updateReplica()}} to {{updateReplicaUnderRecovery()}}, so the DataNode call remains the same, but it actually calls another method. > NPE in FSDataset.updateReplicaUnderRecovery(..) > ----------------------------------------------- > > Key: HDFS-676 > URL: https://issues.apache.org/jira/browse/HDFS-676 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: data-node > Affects Versions: 0.21.0 > Reporter: Tsz Wo (Nicholas), SZE > Assignee: Konstantin Shvachko > Fix For: 0.21.0 > > Attachments: h676_20091005.patch, updateRUR.patch > > > {noformat} > java.io.IOException: java.lang.NullPointerException > at > org.apache.hadoop.hdfs.server.datanode.FSDataset.updateReplicaUnderRecovery(FSDataset.java:2089) > at > org.apache.hadoop.hdfs.server.datanode.DataNode.updateReplicaUnderRecovery(DataNode.java:1598) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:516) > ... > {noformat} > The problem can be reproduced by calling updateReplicaUnderRecovery(blockid) > with blockid not in the volumeMap. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.