StefanRRichter commented on a change in pull request #8431: [FLINK-12480] 
Introduce mailbox to StreamTask main-loop
URL: https://github.com/apache/flink/pull/8431#discussion_r283889210
 
 

 ##########
 File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/OneInputStreamTask.java
 ##########
 @@ -98,12 +96,9 @@ public void init() throws Exception {
        }
 
        @Override
-       protected void run() throws Exception {
-               // cache processor reference on the stack, to make the code 
more JIT friendly
-               final StreamInputProcessor<IN> inputProcessor = 
this.inputProcessor;
-
-               while (running && inputProcessor.processInput()) {
-                       // all the work happens in the "processInput" method
+       protected void performDefaultAction(ActionContext context) throws 
Exception {
+               if (!inputProcessor.processInput()) {
 
 Review comment:
   I am aware of that and that is why we have also planned FLINK-12479 to make 
the inputs non-blocking.
   For the scope of this PR it should not matter and we don't have to wait for 
FLINK-12479 to complete until we work on the subtasks that use the mailbox for 
checkpoints etc.

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


With regards,
Apache Git Services

Reply via email to