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

ASF GitHub Bot commented on FLINK-9325:
---------------------------------------

Github user StephanEwen commented on the issue:

    https://github.com/apache/flink/pull/5982
  
    I think this fix here might not work for S3, because a rename() with the S3 
file systems will actually trigger a copy (or even a download and upload), so 
it is not a cheap operation.
    
    The we can fix this by adding a `create(...)` method (or mode) to the 
FileSystem API that does not publish data in the file until `close()` is 
called. For hdfs://, file://, this would be using a temp file with renaming, 
for S3 we don't write to a temp file, because S3 makes the file only visible on 
close() anyways.


> generate the _meta file for checkpoint only when the writing is truly 
> successful
> --------------------------------------------------------------------------------
>
>                 Key: FLINK-9325
>                 URL: https://issues.apache.org/jira/browse/FLINK-9325
>             Project: Flink
>          Issue Type: Improvement
>          Components: State Backends, Checkpointing
>    Affects Versions: 1.5.0
>            Reporter: Sihua Zhou
>            Assignee: Sihua Zhou
>            Priority: Major
>
> We should generate the _meta file for checkpoint only when the writing is 
> totally successful. We should write the metadata file first to a temp file 
> and then atomically rename it (with an equivalent workaround for S3). 



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

Reply via email to