You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Maximilian Michels (JIRA)" <ji...@apache.org> on 2016/02/01 12:37:39 UTC
[jira] [Resolved] (FLINK-3301) Ineffective synchronization in
MessageAcknowledgingSourceBase#restoreState
[ https://issues.apache.org/jira/browse/FLINK-3301?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maximilian Michels resolved FLINK-3301.
---------------------------------------
Resolution: Duplicate
> Ineffective synchronization in MessageAcknowledgingSourceBase#restoreState
> --------------------------------------------------------------------------
>
> Key: FLINK-3301
> URL: https://issues.apache.org/jira/browse/FLINK-3301
> Project: Flink
> Issue Type: Bug
> Reporter: Ted Yu
>
> Here is related code:
> {code}
> public void restoreState(SerializedCheckpointData[] state) throws Exception {
> synchronized (pendingCheckpoints) {
> pendingCheckpoints = SerializedCheckpointData.toDeque(state, idSerializer);
> {code}
> When lock is held on current pendingCheckpoints field, new reference is assigned to the same field - making the synchronization ineffective.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)