1996fanrui commented on code in PR #21690:
URL: https://github.com/apache/flink/pull/21690#discussion_r1073416193


##########
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamTask.java:
##########
@@ -993,7 +997,7 @@ public MailboxExecutorFactory getMailboxExecutorFactory() {
     }
 
     public boolean canEmitBatchOfRecords() {
-        return !this.mailboxProcessor.hasMail();
+        return !this.mailboxProcessor.hasMail() && taskIsAvailable();
     }

Review Comment:
   Sure, I can update all code after we discuss.



-- 
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

Reply via email to