You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Junping Du (JIRA)" <ji...@apache.org> on 2017/01/06 22:03:58 UTC

[jira] [Updated] (HDFS-7268) Can't append with SYNC_BLOCK

     [ https://issues.apache.org/jira/browse/HDFS-7268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Junping Du updated HDFS-7268:
-----------------------------
    Target Version/s:   (was: 2.8.0)

> Can't append with SYNC_BLOCK
> ----------------------------
>
>                 Key: HDFS-7268
>                 URL: https://issues.apache.org/jira/browse/HDFS-7268
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: hdfs-client
>    Affects Versions: 2.4.1
>            Reporter: Bogdan Raducanu
>
> It seems to me that currently it's not possible to start appending to a file with CreateFlag.SYNC_BLOCK behavior (i.e. hsync after each block). So, I think, the only way to guarantee durability when appending is if the user calls hsync at the end of each block.
> FileSystem.append doesn't accept a CreateFlag argument.
> FileSystem.create, on the other hand, ignores CreateFlag.APPEND afaics. I think the plan in HDFS-744 was to use this method if durability is needed.
> It seems it might work through FileContext but in the end DFSOutputStream never sets shouldSyncBlock when appending anyway.
> Or am I missing something?



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org