beliefer commented on code in PR #26273: URL: https://github.com/apache/flink/pull/26273#discussion_r1986297042
########## flink-runtime/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java: ########## @@ -2218,7 +2218,9 @@ public static LocalStreamEnvironment createLocalEnvironment() { * @return A local execution environment with the specified parallelism. */ public static LocalStreamEnvironment createLocalEnvironment(int parallelism) { - return createLocalEnvironment(parallelism, new Configuration()); + Configuration configuration = new Configuration(); + configuration.set(CoreOptions.DEFAULT_PARALLELISM, parallelism); + return createLocalEnvironment(configuration); Review Comment: The set of Configuration returns the parameterized type. ``` @Override public <T> Configuration set(ConfigOption<T> option, T value) { final boolean canBePrefixMap = canBePrefixMap(option); setValueInternal(option.key(), value, canBePrefixMap); return this; } ``` -- 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: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org