pnowojski commented on a change in pull request #14526: URL: https://github.com/apache/flink/pull/14526#discussion_r552007377
########## File path: flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamTask.java ########## @@ -400,9 +404,23 @@ protected void processInput(MailboxDefaultAction.Controller controller) throws E controller.allActionsCompleted(); return; } - CompletableFuture<?> jointFuture = getInputOutputJointFuture(status); - MailboxDefaultAction.Suspension suspendedDefaultAction = controller.suspendDefaultAction(); - assertNoException(jointFuture.thenRun(suspendedDefaultAction::resume)); + + final Suspension suspension = controller.suspendDefaultAction(); Review comment: I have simplified it, but in your example you missed that sometimes we need to wait on `inputProcessor.getAvailableFuture()` and other times on `recordWriter.getAvailableFuture()` ---------------------------------------------------------------- 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: us...@infra.apache.org