Details
-
Improvement
-
Status: Open
-
Not a Priority
-
Resolution: Unresolved
-
None
-
None
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