You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2017/07/18 07:10:00 UTC
[jira] [Commented] (FLINK-5486) Lack of synchronization in
BucketingSink#handleRestoredBucketState()
[ https://issues.apache.org/jira/browse/FLINK-5486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16091214#comment-16091214 ]
ASF GitHub Bot commented on FLINK-5486:
---------------------------------------
GitHub user zhangminglei opened a pull request:
https://github.com/apache/flink/pull/4356
[FLINK-5486] Fix lacking of synchronization in BucketingSink#handleRe…
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zhangminglei/flink flink-5486
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/flink/pull/4356.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #4356
----
commit 7399ce71c47c242566d5f6959fec2ee666929b89
Author: zhangminglei <zm...@163.com>
Date: 2017-07-18T07:07:09Z
[FLINK-5486] Fix lacking of synchronization in BucketingSink#handleRestoredBucketState
----
> 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
>
> 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
(v6.4.14#64029)