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

Arpit Agarwal commented on HADOOP-15074:
----------------------------------------

Hi Shashikant, I don't think we should change the default behavior of 
{{DFSOutputStream#hsync(void)}}. There is a 
{{DFSOutputStream#hsync(EnumSet<SyncFlag> syncFlags)}} overload that optionally 
takes sync flags. 

If the desired behavior is for {{Writer#hsync}} to update the length on the 
NameNode, then it should pass the UPDATE_LENGTH flag. i.e. make the change in 
SequenceFileWriter.

> SequenceFile#Writer flush does not update the length of the written file.
> -------------------------------------------------------------------------
>
>                 Key: HADOOP-15074
>                 URL: https://issues.apache.org/jira/browse/HADOOP-15074
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Mukul Kumar Singh
>            Assignee: Shashikant Banerjee
>            Priority: Major
>
> SequenceFile#Writer flush does not update the length of the file. This 
> happens because as part of the flush, {{UPDATE_LENGTH}} flag is not passed to 
> the DFSOutputStream#hsync.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to