ifndef-SleePy commented on a change in pull request #11742:
[FLINK-16770][checkpoint] Avoid dispose checkpoint during async finalization of
pendingcheckpoint
URL: https://github.com/apache/flink/pull/11742#discussion_r408606926
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/PendingCheckpoint.java
##########
@@ -129,6 +127,12 @@
private CheckpointException failureCause;
+ /**
+ * The CAS flag for avoiding conflict of dispose and finalize
operations.
+ * Who grab this flag would avoid the other to enter its operation.
+ */
+ private final AtomicBoolean statusFlag;
Review comment:
The name of `statusFlag` is a bit general.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services