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

Allow triggering Checkpoints through command line client

    XMLWordPrintableJSON

Details

    • Hide
      Currently the command line interface support triggering a checkpoint manually. Usage:
        ./bin/flink checkpoint $JOB_ID [-full]
      By specifying the '-full' option, a full checkpoint is triggered. Otherwise an incremental checkpoint is triggered if the job is configured to take incremental ones periodically.
      Show
      Currently the command line interface support triggering a checkpoint manually. Usage:   ./bin/flink checkpoint $JOB_ID [-full] By specifying the '-full' option, a full checkpoint is triggered. Otherwise an incremental checkpoint is triggered if the job is configured to take incremental ones periodically.

    Description

      The command line client currently only allows triggering (and canceling with) Savepoints.

      While this is good if we want to fork or modify the pipelines in a non-checkpoint compatible way, now with incremental checkpoints this becomes wasteful for simple job restarts/pipeline updates.

      I suggest we add a new command:
      ./bin/flink checkpoint <jobID> [checkpointDirectory]

      and a new flag -c for the cancel command to indicate we want to trigger a checkpoint:
      ./bin/flink cancel -c [targetDirectory] <jobID>

      Otherwise this can work similar to the current savepoint taking logic, we could probably even piggyback on the current messages by adding boolean flag indicating whether it should be a savepoint or a checkpoint.

      Attachments

        Issue Links

          Activity

            People

              zakelly Zakelly Lan
              gyfora Gyula Fora
              Votes:
              0 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: