zhoulii commented on code in PR #20117:
URL: https://github.com/apache/flink/pull/20117#discussion_r913648969


##########
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/environment/StreamExecutionEnvironment.java:
##########
@@ -1853,6 +1853,7 @@ private <OUT> DataStreamSource<OUT> createFileInput(
 
         SingleOutputStreamOperator<OUT> source =
                 addSource(monitoringFunction, sourceName, null, boundedness)
+                        
.setMaxParallelism(CoreOptions.DEFAULT_PARALLELISM.defaultValue())

Review Comment:
   -- Maybe introduce a new constant 
ContinuousFileMonitoringFunction.MAX_PARALLELISM = 1
   Maybe 
[SingleOutputStreamOperator#forceNonParallel](https://github.com/apache/flink/blob/master/flink-streaming-java/src/main/java/org/apache/flink/streaming/api/datastream/SingleOutputStreamOperator.java#L206)
 is more appropriate.
   
   -- I also think it would be good to add a comment explaining why this is 
necessary.
   Done.



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