[
https://issues.apache.org/jira/browse/HADOOP-5027?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12667782#action_12667782
]
Konstantin Shvachko commented on HADOOP-5027:
---------------------------------------------
> Block reports from this datanode will not have the block blk_10_25
The block report from the data-node will not have neither blk_10_25 nor
blk_10_26 or any block with id 10.
But the name-node has this block in its block map. It will compare the new
block report with what it thinks the data-node should have and will find out
that the data-node does not have this replica anymore see reportDiff(), and
will remove that replica location. Do I miss anything?
I am looking at the code: NN calls {{removeStoredBlock()}} for this block,
which removes it from the {{DatanodeDescriptor}} and calls
{{updateNeededReplications()}}.
> Block report processing should compare gneration stamp
> ------------------------------------------------------
>
> Key: HADOOP-5027
> URL: https://issues.apache.org/jira/browse/HADOOP-5027
> Project: Hadoop Core
> Issue Type: Bug
> Components: dfs
> Reporter: Tsz Wo (Nicholas), SZE
> Fix For: 0.19.1
>
> Attachments: 5027_20090114.patch
>
>
> If a reported block has a different generation stamp then the one stored in
> the NameNode, the reported block will be considered as invalid. This is
> incorrect since blocks with larger generation stamp are valid.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.