gaoyunhaii commented on a change in pull request #14754:
URL: https://github.com/apache/flink/pull/14754#discussion_r571814278
##########
File path:
flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/OperatorState.java
##########
@@ -41,6 +41,18 @@
*/
public class OperatorState implements CompositeStateHandle {
+ private static final int FULLY_FINISHED_PLACEHOLDER_INDEX = -1;
+
+ /** A special content that marks this operator as fully finished. */
+ private static final Map<Integer, OperatorSubtaskState>
FULLY_FINISHED_STATE =
+ new HashMap<Integer, OperatorSubtaskState>() {
+ {
+ this.put(
+ FULLY_FINISHED_PLACEHOLDER_INDEX,
+ OperatorSubtaskState.builder().build());
+ }
+ };
Review comment:
Very thanks, this is exactly I'm looking for at first, but I do not
found it... :-)
----------------------------------------------------------------
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]