You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Plamen Jeliazkov (JIRA)" <ji...@apache.org> on 2013/03/29 23:13:15 UTC

[jira] [Updated] (HDFS-4639) startFileInternal() should not increment generation stamp

     [ https://issues.apache.org/jira/browse/HDFS-4639?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Plamen Jeliazkov updated HDFS-4639:
-----------------------------------

    Attachment: HDFS-4639.patch

Seems pretty straightforward. Here is my patch. Running HDFS tests locally right now.
                
> startFileInternal() should not increment generation stamp
> ---------------------------------------------------------
>
>                 Key: HDFS-4639
>                 URL: https://issues.apache.org/jira/browse/HDFS-4639
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: namenode
>    Affects Versions: 2.0.3-alpha
>            Reporter: Konstantin Shvachko
>         Attachments: HDFS-4639.patch
>
>
> startFileInternal() increments genStamp and passes it to FSDirectory.addFile() as a parameter, while the addFile() simply ignores the generationStamp parameter.
> We should remove the call of nextGenerationStamp() in startFileInternal() and eliminate the redundant parameter in FSDirectory.addFile().

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira