wanglijie95 commented on a change in pull request #19040:
URL: https://github.com/apache/flink/pull/19040#discussion_r823775267



##########
File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java
##########
@@ -1786,7 +1796,8 @@ private StateBackend loadStateBackend(ReadableConfig 
configuration, ClassLoader
 
         SingleOutputStreamOperator<OUT> source =
                 addSource(monitoringFunction, sourceName, null, boundedness)
-                        .transform("Split Reader: " + sourceName, typeInfo, 
factory);
+                        .transform("Split Reader: " + sourceName, typeInfo, 
factory)
+                        .setParallelism(readerParallelism);

Review comment:
       I think we'd better not modify the logic when we don't use the adaptive 
batch scheduler, so I think we also need to add a `readerParallelism == 
ExecutionConfig.PARALLELISM_DEFAULT && getConfig().isDynamicGraph()` judgment 
here.
   




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