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 "Konstantin Shvachko (JIRA)" <ji...@apache.org> on 2008/10/24 21:07:46 UTC

[jira] Commented: (HADOOP-4508) FSDataOutputStream.getPos() == 0when appending to existing file and should be file length

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

Konstantin Shvachko commented on HADOOP-4508:
---------------------------------------------

Dhruba, can we do something to avoid returning FileStatus as an array of size one.
You just need the number of block out of it right?

> FSDataOutputStream.getPos() == 0when appending to existing file and should be file length
> -----------------------------------------------------------------------------------------
>
>                 Key: HADOOP-4508
>                 URL: https://issues.apache.org/jira/browse/HADOOP-4508
>             Project: Hadoop Core
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.19.0, 0.20.0
>            Reporter: Pete Wyckoff
>            Assignee: dhruba borthakur
>         Attachments: appendGetPos.patch, HADOOP-4508.txt
>
>
> does not seem getPos is set correctly when opening an existing file with non-zero length in append mode.

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