GitHub user EronWright opened a pull request: https://github.com/apache/flink/pull/5427
[FLINK-8533] [checkpointing] Support MasterTriggerRestoreHook state reinitialization Signed-off-by: Eron Wright <eronwri...@gmail.com> ## What is the purpose of the change Support MasterTriggerRestoreHook state re-initialization, to eliminate an edge case involving execution restarts where no checkpoint state is available. ## Brief change log - extend `MasterTriggerRestoreHook` with `initializeState` method. - invoke `initializeState` upon initial execution and upon global restart. ## Verifying this change - Revised test: `CheckpointCoordinatorMasterHooksTest` ## Does this pull request potentially affect one of the following parts: - Dependencies (does it add or upgrade a dependency): no - The public API, i.e., is any changed class annotated with `@Public(Evolving)`: **yes** - The serializers: no - The runtime per-record code paths (performance sensitive): no - Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: **yes** - The S3 file system connector: no ## Documentation - Does this pull request introduce a new feature? no You can merge this pull request into a Git repository by running: $ git pull https://github.com/EronWright/flink FLINK-8533-hook-initialization Alternatively you can review and apply these changes as the patch at: https://github.com/apache/flink/pull/5427.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #5427 ---- commit 9ad0e03c1aa81012ae14f598acdcf3eb76c9ec9f Author: Eron Wright <eronwright@...> Date: 2018-02-08T03:38:47Z [FLINK-8533] Support MasterTriggerRestoreHook state reinitialization - extend `MasterTriggerRestoreHook` with `initializeState` method. - invoke `initializeState` upon initial execution and upon global restart. Signed-off-by: Eron Wright <eronwri...@gmail.com> ---- ---