pnowojski commented on a change in pull request #8826: [FLINK-12479][operators] 
Integrate StreamInputProcessor(s) with mailbox
URL: https://github.com/apache/flink/pull/8826#discussion_r297689776
 
 

 ##########
 File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/StreamTask.java
 ##########
 @@ -246,7 +258,18 @@ protected StreamTask(
         * @param context context object for collaborative interaction between 
the action and the stream task.
         * @throws Exception on any problems in the action.
         */
-       protected abstract void performDefaultAction(ActionContext context) 
throws Exception;
+       protected void performDefaultAction(ActionContext context) throws 
Exception {
+               if (!inputProcessor.processInput()) {
+                       if (inputProcessor.isFinished()) {
+                               context.allActionsCompleted();
+                       }
+                       else {
+                               context.actionsUnavailable();
+                               inputProcessor.isAvailable().thenRun(
+                                       () -> 
ExceptionUtils.suppressExceptions(context::actionsAvailable));
 
 Review comment:
   Yes, I've already changed this accordingly to the @StefanRRichter changes.

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


With regards,
Apache Git Services

Reply via email to