[
https://issues.apache.org/jira/browse/HADOOP-15074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16519699#comment-16519699
]
Arpit Agarwal commented on HADOOP-15074:
----------------------------------------
Hi [~harishjp], can you check whether the returned {{FSDataOutputStream}} is an
instance of {{HdfsDataOutputStream}}. If so, then you can invoke
_hsync(EnumSet<SyncFlag> syncFlags)_ on it. HdfsDataOutputStream is a public
interface.
I don't usually like suggesting reflection, but in this case it may be the
cleanest solution.
> 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]