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

Uma Maheswara Rao G commented on HADOOP-7817:
---------------------------------------------

Yes, the position will come as zero, because it directly opens the 
FileOutPutstream in append mode. This will ensures that the data to go at the 
end of the file.
fixing this would be simple, we can set the position on fileChannel position to 
the length of the file. But i am not sure this is really a bug or not, because 
the author intention is to leave as it is equal behavior with FileOutPutStream 
when opening in append mode....?
                
> RawLocalFileSystem.append() should give FSDataOutputStream with accurate 
> .getPos()
> ----------------------------------------------------------------------------------
>
>                 Key: HADOOP-7817
>                 URL: https://issues.apache.org/jira/browse/HADOOP-7817
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>    Affects Versions: 0.24.0
>            Reporter: Kristofer Tomasette
>            Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> When RawLocalFileSyste.append() is called it returns an FSDataOutputStream 
> whose .getPos() returns 0.
> getPos() should return position in the file where appends will start writing.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to