[
https://issues.apache.org/jira/browse/AVRO-1388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Hari Shreedharan updated AVRO-1388:
-----------------------------------
Attachment: AVRO-1388-2.patch
* Added a test each for create and appendTo.
* Fixed a bug in the patch that caused the sync to be called on the internal
ByteArrayFileOutputStream rather than the underlying stream.
* Added javadoc for the SyncableFileOutputStream class and constructors.
I am now caching the underlying stream in the writer class itself, so we can
call sync on that. An alternate implementation would be to have
BufferedFileOutputStream and PositionFilter implement Syncable. But doing this
would mean that the sync call gets redirected 2 times - which is less efficient.
> Avro container files should allow fsync-ing files to disk
> ---------------------------------------------------------
>
> Key: AVRO-1388
> URL: https://issues.apache.org/jira/browse/AVRO-1388
> Project: Avro
> Issue Type: Bug
> Reporter: Hari Shreedharan
> Assignee: Hari Shreedharan
> Attachments: AVRO-1388-2.patch, AVRO-1388.patch
>
>
> Another feature we require in Avro data files in addition to AVRO-1387 is
> that we be able to fsync the files to disk. Currently we cannot do this, but
> this can be achieved without API changes. If there are no objections, I will
> submit a patch
--
This message was sent by Atlassian JIRA
(v6.1#6144)