Github user tillrohrmann commented on a diff in the pull request:
https://github.com/apache/flink/pull/3227#discussion_r98268538
--- Diff:
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamTask.java
---
@@ -947,11 +951,17 @@ public void run() {
keyedStateHandleBackend,
keyedStateHandleStream);
-
owner.getEnvironment().acknowledgeCheckpoint(checkpointMetaData, subtaskState);
+ if
(asyncCheckpointState.compareAndSet(CheckpointingOperation.AsynCheckpointState.RUNNING,
CheckpointingOperation.AsynCheckpointState.COMPLETED)) {
+
owner.getEnvironment().acknowledgeCheckpoint(checkpointMetaData, subtaskState);
--- End diff --
In order to harden it, I'll reset the state to `RUNNING` in the failure
case if it was `COMPLETED`. Then cleanup should properly work.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---