sunhaibotb commented on a change in pull request #10151: [FLINK-14231] Handle 
the pending processing-time timers to make endInput semantics on the operator 
chain strict
URL: https://github.com/apache/flink/pull/10151#discussion_r378005067
 
 

 ##########
 File path: 
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/functions/source/ContinuousFileReaderOperator.java
 ##########
 @@ -216,13 +216,13 @@ public void onNoMoreData(ContinuousFileReaderOperator<?> 
op) {
                }
        };
 
-       @VisibleForTesting
-       public ContinuousFileReaderOperator(FileInputFormat<OUT> format) {
-               this.format = checkNotNull(format);
-       }
+       public ContinuousFileReaderOperator(
+               FileInputFormat<OUT> format,
+               ProcessingTimeService processingTimeService,
+               MailboxExecutor mailboxExecutor) {
 
-       public ContinuousFileReaderOperator(FileInputFormat<OUT> format, 
MailboxExecutor mailboxExecutor) {
                this.format = checkNotNull(format);
+               this.processingTimeService = 
checkNotNull(processingTimeService);
 
 Review comment:
   `AbstractStreamOperator` needs `ProcessingTimeService` ( see 
`StreamTaskStateInitializerImpl#streamOperatorState`), so almost all operators 
need it. For `ContinuousFileReaderOperator` , you can check traivis's failure 
log  to see this need:  https://travis-ci.com/flink-ci/flink/builds/148235635.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to