Grzegorz Liter
11/28/2024, 8:30 AMstate.backend.type: "hashmap"
state.backend.incremental: "true"
state.checkpoints.dir: {{ .Values.state.checkpointsDir }}
state.savepoints.dir: {{ .Values.state.savepointsDir }}
I have noticed that doing savepoints does not commit files to S3 nor commits offset to Kafka in oppose to checkpoint that does.
In case of savepoint JM logs are just:
2024-11-28 08:06:13,030 INFO org.apache.flink.runtime.jobmaster.JobMaster [] - Triggering savepoint for job a47549261d0dcc6461f5f877273f38ba.
2024-11-28 08:06:13,040 INFO org.apache.flink.runtime.checkpoint.CheckpointCoordinator [] - Triggering checkpoint 10135 (type=SavepointType{name='Savepoint', postCheckpointAction=NONE, formatType=CANONICAL}) @ 1732781173030 for job a47549261d0dcc6461f5f877273f38ba.
2024-11-28 08:06:22,921 INFO org.apache.flink.runtime.state.filesystem.FsCheckpointMetadataOutputStream [] - Cannot create recoverable writer due to This s3 file system implementation does not support recoverable writers., will use the ordinary writer.
2024-11-28 08:06:23,041 INFO org.apache.flink.runtime.checkpoint.CheckpointCoordinator [] - Completed checkpoint 10135 for job a47549261d0dcc6461f5f877273f38ba (640419 bytes, checkpointDuration=10010 ms, finalizationTime=1 ms).
While in case of checkpoint there are additional logs from SourceCoordinator
2024-11-28 08:08:45,935 INFO org.apache.flink.runtime.jobmaster.JobMaster [] - Triggering a manual checkpoint for job a47549261d0dcc6461f5f877273f38ba.
2024-11-28 08:08:45,950 INFO org.apache.flink.runtime.checkpoint.CheckpointCoordinator [] - Triggering checkpoint 10136 (type=CheckpointType{name='Full Checkpoint', sharingFilesStrategy=FORWARD}) @ 1732781325935 for job a47549261d0dcc6461f5f877273f38ba.
2024-11-28 08:08:49,022 INFO org.apache.flink.runtime.state.filesystem.FsCheckpointMetadataOutputStream [] - Cannot create recoverable writer due to This s3 file system implementation does not support recoverable writers., will use the ordinary writer.
2024-11-28 08:08:49,333 INFO org.apache.flink.runtime.checkpoint.CheckpointCoordinator [] - Completed checkpoint 10136 for job a47549261d0dcc6461f5f877273f38ba (658168 bytes, checkpointDuration=3206 ms, finalizationTime=192 ms).
2024-11-28 08:08:49,335 INFO org.apache.flink.runtime.source.coordinator.SourceCoordinator [] - Marking checkpoint 10136 as completed for source Source: <Source1>.
2024-11-28 08:08:49,335 INFO org.apache.flink.runtime.source.coordinator.SourceCoordinator [] - Marking checkpoint 10136 as completed for source Source: <Source2>.
2024-11-28 08:08:49,335 INFO org.apache.flink.runtime.source.coordinator.SourceCoordinator [] - Marking checkpoint 10136 as completed for source Source: <Source3>.
Is this expected behaviour? It kind of defeats the purpose of stopping a job with savepoint as there will be still some inflight data.