the-other-tim-brown commented on code in PR #13653:
URL: https://github.com/apache/hudi/pull/13653#discussion_r2248043137


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/table/action/rollback/RestorePlanActionExecutor.java:
##########
@@ -75,10 +80,19 @@ public Option<HoodieRestorePlan> execute() {
               .filter(instant -> GREATER_THAN.test(instant.requestedTime(), 
savepointToRestoreTimestamp))
               .collect(Collectors.toList());
 
-      // Get all the commits on the timeline after the provided commit time
+      // Get all the commits on the timeline after the provided commit's 
completion time unless it is the SOLO_COMMIT_TIMESTAMP which indicates there 
are no commits for the table
+      String completionTime = 
savepointToRestoreTimestamp.equals(SOLO_COMMIT_TIMESTAMP) ? 
savepointToRestoreTimestamp : 
completionTimeQueryView.getCompletionTime(savepointToRestoreTimestamp)

Review Comment:
   This was only occurring in the upgrade/downgrade testing on tables with no 
commits



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