LinMingQiang commented on code in PR #5937:
URL: https://github.com/apache/hudi/pull/5937#discussion_r917329609


##########
hudi-flink-datasource/hudi-flink/src/test/java/org/apache/hudi/utils/TestUtils.java:
##########
@@ -70,6 +70,16 @@ public static String getLastDeltaCompleteInstant(String 
basePath) {
         .orElse(null);
   }
 
+  public static String getLastCompletedCommitInstants(String basePath) {
+    final HoodieTableMetaClient metaClient = HoodieTableMetaClient.builder()
+            .setConf(HadoopConfigurations.getHadoopConf(new 
Configuration())).setBasePath(basePath).build();
+    return metaClient.getCommitsTimeline().filterCompletedInstants()
+            .filter(hoodieInstant -> 
hoodieInstant.getAction().equals(HoodieTimeline.COMMIT_ACTION))
+            .lastInstant()

Review Comment:
   Sorry, I forgot to delete this when I was doing `cherry pick`.



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