dawidwys commented on a change in pull request #18726:
URL: https://github.com/apache/flink/pull/18726#discussion_r804669091
##########
File path:
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/operators/SourceOperator.java
##########
@@ -453,6 +438,18 @@ private DataInputStatus emitNextNotReading(DataOutput<OUT>
output) throws Except
}
}
+ private void initializeWatermarkAlignment(DataOutput<OUT> output) {
+ if (watermarkStrategy instanceof WatermarksWithWatermarkAlignment) {
+ watermarkTrackingOutput = new WatermarkTrackingOutput<>(output);
+ final long updateInterval =
+ ((WatermarksWithWatermarkAlignment<OUT>) watermarkStrategy)
+ .getUpdateInterval()
+ .toMillis();
+ processingTimeService.scheduleWithFixedDelay(
+ this::emitLatestWatermark, updateInterval, updateInterval);
+ }
+ }
Review comment:
Yes, a mistake while rebasing.
--
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]