lindong28 commented on a change in pull request #15161:
URL: https://github.com/apache/flink/pull/15161#discussion_r601981728
##########
File path:
flink-streaming-java/src/main/java/org/apache/flink/streaming/runtime/tasks/SourceOperatorStreamTask.java
##########
@@ -145,19 +155,25 @@ private void
triggerCheckpointForExternallyInducedSource(long checkpointId) {
private final Output<StreamRecord<T>> output;
@Nullable private final WatermarkGauge inputWatermarkGauge;
+ @Nullable private final Counter numRecordsOut;
public AsyncDataOutputToOutput(
Output<StreamRecord<T>> output,
StreamStatusMaintainer streamStatusMaintainer,
- @Nullable WatermarkGauge inputWatermarkGauge) {
+ @Nullable WatermarkGauge inputWatermarkGauge,
+ @Nullable Counter numRecordsOut) {
super(streamStatusMaintainer);
this.output = checkNotNull(output);
this.inputWatermarkGauge = inputWatermarkGauge;
+ this.numRecordsOut = numRecordsOut;
}
@Override
public void emitRecord(StreamRecord<T> streamRecord) {
+ if (numRecordsOut != null) {
Review comment:
Sounds good. It is updated as suggested :)
--
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]