skywalker0618 commented on code in PR #20564:
URL: https://github.com/apache/hudi/pull/20564#discussion_r4532745422


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/source/reader/HoodieSourceSplitReader.java:
##########
@@ -109,6 +113,7 @@ public RecordsWithSplitIds<HoodieRecordWithPosition<T>> 
fetch() throws IOExcepti
       }
       currentSplit = nextSplit;
       readerFunction.open(currentSplit);
+      readerMetrics.setSplitLatestCommit(currentSplit.getLatestCommit());

Review Comment:
   Good point, done in bc41326be5: the split is started in the metrics before 
`readerFunction.open()`, so a slow open or recovery replay counts as reading.



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