yihua commented on code in PR #9755:
URL: https://github.com/apache/hudi/pull/9755#discussion_r1535961867


##########
hudi-common/src/main/java/org/apache/hudi/common/table/timeline/HoodieDefaultTimeline.java:
##########
@@ -490,6 +493,19 @@ public Option<HoodieInstant> getFirstNonSavepointCommit() {
     }
     return firstNonSavepointCommit;
   }
+
+  public Option<HoodieInstant> getLastClusterCommit() {
+    return  Option.fromJavaOptional(getCommitsTimeline().filter(s -> 
s.getAction().equalsIgnoreCase(HoodieTimeline.REPLACE_COMMIT_ACTION))
+        .getReverseOrderedInstants()
+        .filter(i -> {
+          try {
+            HoodieCommitMetadata metadata = TimelineUtils.getCommitMetadata(i, 
this);

Review Comment:
   This introduced a regression that the pending clustering is no longer 
considered when figuring out the `lastClusteringInstant`.



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