You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "Hairong Kuang (JIRA)" <ji...@apache.org> on 2009/03/04 19:45:56 UTC

[jira] Commented: (HADOOP-5384) DataNodeCluster should not create blocks with generationStamp == 1

    [ https://issues.apache.org/jira/browse/HADOOP-5384?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12678837#action_12678837 ] 

Hairong Kuang commented on HADOOP-5384:
---------------------------------------

Would it be less error-prone to provide a constructor Block(blk-id, blk-size), which sets the default generation stamp to be Block.GRANDFATHER_GENERATION_STAMP?

> DataNodeCluster should not create blocks with generationStamp == 1
> ------------------------------------------------------------------
>
>                 Key: HADOOP-5384
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5384
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: test
>            Reporter: Tsz Wo (Nicholas), SZE
>         Attachments: 5384_20090303.patch
>
>
> In DataNodeCluster.main(..), injected blocks are created with generationStamp == 1, which is a reserved value but not a valid generation stamp.  As a consequence, NameNode may die when those blocks are reported.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.