Tan-JiaLiang commented on code in PR #54:
URL: 
https://github.com/apache/flink-connector-kafka/pull/54#discussion_r1361836302


##########
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:
   @PatrickRen Thanks for your feedback!
   Got it. Seems it is imposible to support `currentFetchEventTimeLag` now in 
kafka connector until we can get the event time in kafka.



-- 
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]

Reply via email to