zhoulii commented on a change in pull request #19040:
URL: https://github.com/apache/flink/pull/19040#discussion_r824319476
##########
File path:
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java
##########
@@ -1772,9 +1774,17 @@ private StateBackend loadStateBackend(ReadableConfig
configuration, ClassLoader
+
ContinuousFileMonitoringFunction.MIN_MONITORING_INTERVAL
+ " ms.");
+ Configuration conf = (Configuration)
getExecutionEnvironment().getConfiguration();
+ int readerParallelism = getParallelism();
+ if(readerParallelism == -1
+ && ClusterOptions.getSchedulerType(conf) ==
JobManagerOptions.SchedulerType.AdaptiveBatch) {
+ readerParallelism = conf.get(
Review comment:
-- if (readerParallelism == ExecutionConfig.PARALLELISM_DEFAULT &&
getConfig().isDynamicGraph())
yes, it's more concise.
--readerParallelism = getConfiguration().get(JobManagerOptions....);
actually, we cannot get config info via getConfiguration(), the result of
getConfiguration() is empty.
--
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]