flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-6427) BucketingSink does not sync file length in case of cancel
Date Wed, 03 May 2017 11:38:04 GMT

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

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

Github user aljoscha commented on the issue:

    https://github.com/apache/flink/pull/3813
  
    This looks good to me. @StefanRRichter do you have an opinion on this?


> BucketingSink does not sync file length in case of cancel
> ---------------------------------------------------------
>
>                 Key: FLINK-6427
>                 URL: https://issues.apache.org/jira/browse/FLINK-6427
>             Project: Flink
>          Issue Type: Bug
>          Components: Streaming Connectors
>    Affects Versions: 1.3.0, 1.2.1
>            Reporter: Aljoscha Krettek
>            Assignee: Aljoscha Krettek
>
> This is from a discussion on the user mailing lists: https://lists.apache.org/thread.html/917dbbbd7c8f48b33e7b470fa9ed382df61cf43cb5deb46becebf4b5@%3Cuser.flink.apache.org%3E
> A possible solution is to add this to {{StreamWriterBase.hflushOrSync()}}:
> {code}
> if (os.getWrappedStream() instanceof DFSOutputStream) {
>     ((DFSOutputStream) os.getWrappedStream()).hsync(EnumSet.of(HdfsDataOutputStream.SyncFlag.UPDATE_LENGTH));
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message