Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-6984

Do not recover CompletedCheckpointStore on every restore

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 1.2.1, 1.3.0, 1.4.0
    • 1.12.0
    • None

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              wind_ljy Jiayi Liao
              srichter Stefan Richter
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: