pgaref commented on code in PR #21923: URL: https://github.com/apache/flink/pull/21923#discussion_r1124085401
########## flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamTask.java: ########## @@ -255,23 +258,52 @@ private final StreamTaskAsyncExceptionHandler asyncExceptionHandler; - /** - * Flag to mark the task "in operation", in which case check needs to be initialized to true, so - * that early cancel() before invoke() behaves correctly. - */ - private volatile boolean isRunning; - - /** Flag to mark the task at restoring duration in {@link #restore()}. */ - private volatile boolean isRestoring; - - /** Flag to mark this task as canceled. */ - private volatile boolean canceled; + /** Possible states of a Task. */ + private static class TaskState { Review Comment: Ack. moved to the bottom of the class -- 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. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org