liuxiao2shf commented on code in PR #3619:
URL: https://github.com/apache/flink-cdc/pull/3619#discussion_r1792988461


##########
flink-cdc-connect/flink-cdc-source-connectors/flink-cdc-base/src/main/java/org/apache/flink/cdc/connectors/base/source/metrics/SourceReaderMetrics.java:
##########
@@ -60,4 +110,146 @@ public void recordFetchDelay(long fetchDelay) {
     public void addNumRecordsInErrors(long delta) {
         this.numRecordsInErrorsCounter.inc(delta);
     }
+
+    public void updateLastReceivedEventTime(Long eventTimestamp) {
+        if (eventTimestamp != null && eventTimestamp > 0L) {
+            lastReceivedEventTime = eventTimestamp;
+        }
+    }
+
+    public void markRecord() {
+        metricGroup.getIOMetricGroup().getNumRecordsInCounter().inc();

Review Comment:
   Ok, it has been adjusted



-- 
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: issues-unsubscr...@flink.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to