[
https://issues.apache.org/jira/browse/FLINK-5019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15636413#comment-15636413
]
ASF GitHub Bot commented on FLINK-5019:
---------------------------------------
Github user aljoscha commented on the issue:
https://github.com/apache/flink/pull/2746
Overall, this change is very good! 👍
I had some inline comments/questions.
> Proper isRestored result for tasks that did not write state
> -----------------------------------------------------------
>
> Key: FLINK-5019
> URL: https://issues.apache.org/jira/browse/FLINK-5019
> Project: Flink
> Issue Type: Bug
> Reporter: Stefan Richter
> Assignee: Stefan Richter
>
> When a subtask is restored from a checkpoint that does not contain any state
> (e.g. because the subtask did not write state in the previous run), the
> result of {{StateInitializationContext::isRestored}} will incorrectly return
> false.
> We should ensure that empty state is somehow reflected in a checkpoint and
> return true on restore, independent from the presence of state.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)