TisonKun commented on a change in pull request #10526: [FLINK-15090][build] Reverse the dependency from flink-streaming-java to flink-client URL: https://github.com/apache/flink/pull/10526#discussion_r390813496
########## File path: flink-clients/src/main/java/org/apache/flink/client/program/OptimizerPlanEnvironment.java ########## @@ -22,143 +22,39 @@ import org.apache.flink.api.java.ExecutionEnvironment; import org.apache.flink.api.java.ExecutionEnvironmentFactory; import org.apache.flink.core.execution.JobClient; -import org.apache.flink.util.Preconditions; - -import javax.annotation.Nullable; - -import java.io.ByteArrayOutputStream; -import java.io.PrintStream; /** - * An {@link ExecutionEnvironment} that never executes a job but only extracts the {@link - * org.apache.flink.api.dag.Pipeline}. + * An {@link ExecutionEnvironment} that never executes a job but only extracts the {@link Pipeline}. */ public class OptimizerPlanEnvironment extends ExecutionEnvironment { - private Pipeline pipeline; + private static Pipeline pipeline; Review comment: It is, unfortunately, a historical problem that becomes obvious in this pull request. And anyway, we can tweak the code a bit to keep the manner as is. For the specific case, we use single `OptimizerPlanEnvironment` and `ContextEnvironmentFactory` like `StreamPlanEnvironment`. ---------------------------------------------------------------- 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