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

The checkpoint storage configured in the job level by config option will not take effect

    XMLWordPrintableJSON

Details

    Description

      When we configure the checkpoint storage at the job level, it can only be done through the following method:

      StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
      env.getCheckpointConfig().setCheckpointStorage(xxx); 

      or configure filesystem storage by config option CheckpointingOptions.CHECKPOINTS_DIRECTORY through the following method:

      Configuration configuration = new Configuration();
      configuration.set(CheckpointingOptions.CHECKPOINTS_DIRECTORY, checkpointDir); 
      StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment(configuration);

      However, configure the other type checkpoint storage by the job-side configuration like the following will not take effect:

      Configuration configuration = new Configuration();
      StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment(configuration);
      configuration.set(CheckpointingOptions.CHECKPOINT_STORAGE, "aaa.bbb.ccc.CustomCheckpointStorage");
      configuration.set(CheckpointingOptions.CHECKPOINTS_DIRECTORY, checkpointDir); 

      This behavior is unexpected, we should allow this way will take effect.

      Attachments

        Issue Links

          Activity

            People

              JunRuiLi Junrui Li
              JunRuiLi Junrui Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: