zhuzhurk commented on a change in pull request #8158: [FLINK-12131][runtime] 
Adjust IntermediateResult/IntermediateResultPartition status properly…
URL: https://github.com/apache/flink/pull/8158#discussion_r278485111
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/executiongraph/IntermediateResultPartition.java
 ##########
 @@ -86,6 +86,11 @@ public boolean isConsumable() {
        }
 
        void resetForNewExecution() {
+               if (getResultType().isBlocking() && hasDataProduced) {
+                       // A BLOCKING result partition with data produced means 
it is finished
+                       // Need to add the running producer count of the result 
on resetting it
+                       
totalResult.incrementNumberOfRunningProducersAndGetRemaining();
+               }
 
 Review comment:
   Agree. 

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