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 "Konstantin Shvachko (JIRA)" <ji...@apache.org> on 2010/08/31 23:57:53 UTC

[jira] Commented: (HDFS-1363) startFileInternal should return the last block of the file opened for append as an under-construction block

    [ https://issues.apache.org/jira/browse/HDFS-1363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12904789#action_12904789 ] 

Konstantin Shvachko commented on HDFS-1363:
-------------------------------------------

The block conversion should be done in {{FSNamesystem.startFileInternal()}}, when the file itself is converted to an under-construction file.
The last block of the file should be returned to {{FSNamesystem.appendFile()}}, which will make computation of the last block in {{appendFile()}} redundant.

> startFileInternal should return the last block of the file opened for append as an under-construction block
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-1363
>                 URL: https://issues.apache.org/jira/browse/HDFS-1363
>             Project: Hadoop HDFS
>          Issue Type: Bug
>    Affects Versions: 0.21.0
>            Reporter: Konstantin Shvachko
>             Fix For: 0.21.1
>
>
> {{FSNamesystem.startFileInternal}} should convert the last block of the file opened for append to an under-construction block and return it. This will let remove the second synchronized section in {{FSNamesystem.appendFile()}} and avoid redundant computations and potential inconsistencies as stated in HDFS-1152.

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