PatrickRen commented on code in PR #54:
URL:
https://github.com/apache/flink-connector-kafka/pull/54#discussion_r1363055143
##########
flink-connector-kafka/src/main/java/org/apache/flink/connector/kafka/source/reader/KafkaPartitionSplitReader.java:
##########
@@ -110,6 +110,13 @@ public RecordsWithSplitIds<ConsumerRecord<byte[], byte[]>>
fetch() throws IOExce
markEmptySplitsAsFinished(recordsBySplits);
return recordsBySplits;
}
+
+ // Track the record fetch lag
+ consumerRecords
+ .iterator()
+ .forEachRemaining(
+ record ->
kafkaSourceReaderMetrics.recordFetched(record.timestamp()));
Review Comment:
@Tan-JiaLiang Indeed. This is a shared issue across all source connectors,
because SourceReaderBase doesn't provide an interface for implementations to
deliver `FetchTime` all the way to the place extracting `EventTime` in
SourceOutput.
--
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]