Github user rmetzger commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2386#discussion_r83201419
  
    --- Diff: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/OperatorChain.java
 ---
    @@ -273,7 +276,7 @@ public void releaseOutputs() {
     
                // now create the operator and give it the output collector to 
write its output to
                OneInputStreamOperator<IN, OUT> chainedOperator = 
operatorConfig.getStreamOperator(userCodeClassloader);
    -           chainedOperator.setup(containingTask, operatorConfig, output);
    +           chainedOperator.setup(containingTask, operatorConfig, output, 
streamOutputs.size() == 0);
    --- End diff --
    
    We would not need to set this as a value in the `StreamConfig` class, 
because its basically a check if `StreamConfig.getOutEdgesInOrder().size == 0`. 
The problem is that `getOutEdgesInOrder()` expects the user code classloader. 
The classloader is usually not available anymore in the operators.
    



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to