[ https://issues.apache.org/jira/browse/FLINK-6984?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jiayi Liao closed FLINK-6984. ----------------------------- Resolution: Duplicate Resoloved in FLINK-19596. > Do not recover CompletedCheckpointStore on every restore > -------------------------------------------------------- > > Key: FLINK-6984 > URL: https://issues.apache.org/jira/browse/FLINK-6984 > Project: Flink > Issue Type: Improvement > Components: Runtime / State Backends > Affects Versions: 1.2.1, 1.3.0, 1.4.0 > Reporter: Stefan Richter > Assignee: Jiayi Liao > Priority: Major > > Currently, restoring the latest checkpoint always recovers the > {{CompletedCheckpointStore}} in > {{CheckpointCoordinator::restoreLatestCheckpointedState(...)}} by calling > {{completedCheckpointStore.recover(sharedStateRegistry)}}. I think this is > not required on every restore, but can happen only once when the JM becomes > leader, e.g. when the {{CheckpointCoordinator}} is created. This can avoid > unnecessary work and simplify the logic, e.g. for populating the > {{SharedStateRegistry}}, and we could probably also move the ownership for > {{SharedStateRegistry}} into some {{AbstractCompletedCheckpontStore}}. -- This message was sent by Atlassian Jira (v8.3.4#803005)