dmvk commented on a change in pull request #10153: [FLINK-14709] Allow 
outputting elements in user defined close method,…
URL: https://github.com/apache/flink/pull/10153#discussion_r351273887
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/operators/BatchTask.java
 ##########
 @@ -509,11 +509,14 @@ protected void run() throws Exception {
                                stubOpen = false;
                        }
 
-                       this.output.close();
-
                        // close all chained tasks letting them report failure
                        BatchTask.closeChainedTasks(this.chainedTasks, this);
+
+                       // close the output collector
+                       this.output.close();
+
                }
+
 
 Review comment:
   fixed

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