[ 
https://issues.apache.org/jira/browse/FLINK-14857?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Piotr Nowojski closed FLINK-14857.
----------------------------------
    Fix Version/s: 1.10.0
     Release Note: 
Deprecated {{getCheckpointLock}} method of the 
{{org.apache.flink.streaming.runtime.tasks.StreamTask}} class.

Users should use {{MailboxExecutor}} to run actions that require 
synchronization with the task's thread (e.g. collecting output produced by an 
external thread). {{MailboxExecutor#yield}} or {{MailboxExecutor#tryYield}} 
methods can be used for actions that should give control to other actions 
temporarily, if the current operator is blocked.

{{MailboxExecutor}} can be accessed by using {{YieldingOperatorFactory}}. 
Example usage can be found in the {{AsyncWaitOperator}}.

  was:
Deprecated {{getCheckpointLock}} method of the 
{{org.apache.flink.streaming.runtime.tasks.StreamTask}} class.

Users should use {{MailboxExecutor}} to run actions that require 
synchronization with the task's thread (e.g. collecting output produced by an 
external thread). {{MailboxExecutor#yield}} or {{MailboxExecutor#tryYield}} 
methods can be used for actions that should give control to other actions 
temporarily, if the current operator is blocked.

{{MailboxExecutor}} can be accessed by using {{YieldingOperatorFactory}}. 
Example usage can be found in {{AsyncWaitOperator}}.

       Resolution: Fixed

merged as commits 4dfb925 and 16de600

> Deprecate checkpoint lock from the Operators API
> ------------------------------------------------
>
>                 Key: FLINK-14857
>                 URL: https://issues.apache.org/jira/browse/FLINK-14857
>             Project: Flink
>          Issue Type: Sub-task
>          Components: Runtime / Task
>    Affects Versions: 1.9.1
>            Reporter: Roman Khachatryan
>            Assignee: Roman Khachatryan
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.10.0
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> Drop `this.checkpointLock = getContainingTask().getCheckpointLock();` access 
> (used for example in `ContinuousFileReaderOperator`).
> Redirect users to the mailbox (enqueuing/yielding).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to