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

Ted Yu commented on FLINK-5855:
-------------------------------

IMO, after discussion, if the new fix is in the same area of code, the 
description of the JIRA can be modified to reflect the outcome of discussion - 
instead of closing the first JIRA and opening a new one.


> Unprotected access to pendingFilesPerCheckpoint in BucketingSink
> ----------------------------------------------------------------
>
>                 Key: FLINK-5855
>                 URL: https://issues.apache.org/jira/browse/FLINK-5855
>             Project: Flink
>          Issue Type: Bug
>          Components: Streaming Connectors
>            Reporter: Ted Yu
>            Assignee: mingleizhang
>            Priority: Minor
>
> {code}    
> handlePendingFilesForPreviousCheckpoints(restoredState.pendingFilesPerCheckpoint);
>     synchronized (restoredState.pendingFilesPerCheckpoint) {
>       restoredState.pendingFilesPerCheckpoint.clear();
> {code}
> Lock on pendingFilesPerCheckpoint should be obtained prior to the call to 
> handlePendingFilesForPreviousCheckpoints().



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

Reply via email to