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

Aljoscha Krettek commented on FLINK-5421:
-----------------------------------------

Implemented on master in:
aaf8e09d8f9ee7f04cb79d317e3122282153858c
499aea0d834ad8e8ef34fb80ffd89b6482062e37

> Explicit restore method in Snapshotable
> ---------------------------------------
>
>                 Key: FLINK-5421
>                 URL: https://issues.apache.org/jira/browse/FLINK-5421
>             Project: Flink
>          Issue Type: Improvement
>            Reporter: Stefan Richter
>            Assignee: Stefan Richter
>
> We should introduce an explicit {{restore(...)}} method to match the 
> {{snapshot(...)}} method in this interface.
> Currently, restore happens implicit in backends, i.e. when state handles are 
> provided, backends execute restore logic in their constructors. This 
> behaviour makes it hard for backends to participate in the task's lifecycle 
> through {{CloseableRegistry}}, because we can only register backend objects 
> after they have been constructed. As a result, for example, all restore 
> operations that happen in the constructor are not responsive to cancelation.
> When we introduce an explicit restore, we can first create a backend object, 
> then register it, and only then run restore.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to