tsreaper commented on code in PR #21961:
URL: https://github.com/apache/flink/pull/21961#discussion_r1112461489


##########
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java:
##########
@@ -149,11 +149,14 @@
 @Public
 public class StreamExecutionEnvironment implements AutoCloseable {
 
-    private static final List<CollectResultIterator<?>> collectIterators = new 
ArrayList<>();
+    private static final List<CollectResultIterator<?>> collectIterators =

Review Comment:
   Why do we need a `static` variable here? Let's say there are two instances 
of `StreamExecutionEnvironment`. Each environment should only care about its 
own job. But in `executeAsync` iterators for other jobs might be affected too.
   
   @zentol please take a look.



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

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to