danny0405 commented on code in PR #9350:
URL: https://github.com/apache/hudi/pull/9350#discussion_r1282587487


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/source/StreamReadMonitoringFunction.java:
##########
@@ -262,9 +268,16 @@ public void snapshotState(FunctionSnapshotContext context) 
throws Exception {
     this.instantState.clear();
     if (this.issuedInstant != null) {
       this.instantState.add(this.issuedInstant);
+      this.readMetrics.setIssuedInstant(this.issuedInstant);
     }
     if (this.issuedOffset != null) {

Review Comment:
   Does the metrics got updated for each read?



##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/source/StreamReadOperator.java:
##########
@@ -168,6 +174,8 @@ private void processSplits() throws IOException {
       currentSplitState = SplitState.IDLE;
     }
 
+    readMetrics.setSplitLatestCommit(split.getLatestCommit());
+

Review Comment:
   Does the metrics got updated for each read?



-- 
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: commits-unsubscr...@hudi.apache.org

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

Reply via email to