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

Do not create checkpointStorage when checkpoint is disabled

    XMLWordPrintableJSON

Details

    Description

      In `StreamTask#invoke` will create CheckpointStore by `stateBackend.createCheckpointStorage`, and create some directories.

      But if the checkpoint is disabled, we could skip the creation of checkpointStore.

       

      IMO, the code could change to something like below

      boolean enabledCheckpoint = configuration.getConfiguration().getBoolean("checkpointing", false);
      if (enabledCheckpoint) {
         checkpointStorage = stateBackend.createCheckpointStorage(getEnvironment().getJobID());
      }
      
      
      
      
      

       

      or just skip the directories creation when create CheckpointStorage

      Attachments

        Activity

          People

            Unassigned Unassigned
            klion26 Congxian Qiu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: