SteNicholas commented on a change in pull request #17105:
URL: https://github.com/apache/flink/pull/17105#discussion_r700831146
##########
File path:
flink-streaming-java/src/main/java/org/apache/flink/streaming/api/operators/SourceOperator.java
##########
@@ -281,6 +290,21 @@ public void open() throws Exception {
watermarkStrategy, sourceMetricGroup);
}
+ latencyMarerEmitter =
+ new LatencyMarkerEmitter<>(
+ getProcessingTimeService(),
+ getExecutionConfig().isLatencyTrackingConfigured()
+ ?
getExecutionConfig().getLatencyTrackingInterval()
+ : getContainingTask() == null
Review comment:
> How `getContainingTask()` can return null?
@pnowojski , when the `setup` of the `SourceOperator` isn't called with the
operation chain, the `getContainingTask()` could be null. But this case is
impossible to exist.
--
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]