flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (FLINK-5486) Lack of synchronization in BucketingSink#handleRestoredBucketState()
Date Wed, 06 Jun 2018 17:52:00 GMT

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

Ted Yu edited comment on FLINK-5486 at 6/6/18 5:51 PM:
-------------------------------------------------------

Can this get more review, please?


was (Author: yuzhihong@gmail.com):
Can this get more review, please ?

> Lack of synchronization in BucketingSink#handleRestoredBucketState()
> --------------------------------------------------------------------
>
>                 Key: FLINK-5486
>                 URL: https://issues.apache.org/jira/browse/FLINK-5486
>             Project: Flink
>          Issue Type: Bug
>          Components: Streaming Connectors
>            Reporter: Ted Yu
>            Assignee: mingleizhang
>            Priority: Major
>             Fix For: 1.3.4
>
>
> Here is related code:
> {code}
>       handlePendingFilesForPreviousCheckpoints(bucketState.pendingFilesPerCheckpoint);
>       synchronized (bucketState.pendingFilesPerCheckpoint) {
>         bucketState.pendingFilesPerCheckpoint.clear();
>       }
> {code}
> The handlePendingFilesForPreviousCheckpoints() call should be enclosed inside the synchronization
block. Otherwise during the processing of handlePendingFilesForPreviousCheckpoints(), some
entries of the map may be cleared.



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

Mime
View raw message