You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "rkhachatryan (via GitHub)" <gi...@apache.org> on 2023/03/02 19:52:12 UTC

[GitHub] [flink] rkhachatryan commented on a diff in pull request #21923: FLINK-13871: Consolidate volatile status fields in StreamTask

rkhachatryan commented on code in PR #21923:
URL: https://github.com/apache/flink/pull/21923#discussion_r1123627887


##########
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamTask.java:
##########
@@ -1019,16 +1049,24 @@ public CanEmitBatchOfRecordsChecker getCanEmitBatchOfRecords() {
         return () -> !this.mailboxProcessor.hasMail() && taskIsAvailable();
     }
 
+    public final boolean isInitialized() {

Review Comment:
   Or it could be something like
   ```
   private static class TaskState {
       ...
       public final boolean isRestoring() {
           return this.status == TaskState.Status.RESTORING;
       }
   }



-- 
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-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org