Bharathkrishna G M
06/01/2023, 1:43 AMexecution.checkpointing.unaligned: true
and also in the code I tried:
val env = StreamExecutionEnvironment.getExecutionEnvironment
env.enableCheckpointing(120000, CheckpointingMode.AT_LEAST_ONCE)
env.getCheckpointConfig.enableExternalizedCheckpoints(ExternalizedCheckpointCleanup.RETAIN_ON_CANCELLATION)
env.getCheckpointConfig.setCheckpointTimeout(240000)
env.getCheckpointConfig.enableUnalignedCheckpoints()
But in the UI, it still shows it uses aligned checkpoints as shown in image. What am I missing here?Bharathkrishna G M
06/01/2023, 1:47 AMweijie guo
06/01/2023, 6:03 AMexecution.checkpointing.mode
is EXACTLY_ONCE
and if execution.checkpointing.max-concurrent-checkpoints
is 1
.weijie guo
06/01/2023, 6:04 AMweijie guo
06/01/2023, 6:05 AMif (checkpointConfig.isUnalignedCheckpointsEnabled()
&& getCheckpointingMode(checkpointConfig) != CheckpointingMode.EXACTLY_ONCE) {
LOG.warn("Unaligned checkpoints can only be used with checkpointing mode EXACTLY_ONCE");
checkpointConfig.enableUnalignedCheckpoints(false);
}