kbuci commented on code in PR #11580:
URL: https://github.com/apache/hudi/pull/11580#discussion_r1676694305


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/BaseHoodieWriteClient.java:
##########
@@ -931,6 +932,7 @@ private void startCommit(String instantTime, String 
actionType, HoodieTableMetaC
         "Found pending restore in active timeline. Please complete the restore 
fully before proceeding. As of now, "
             + "table could be in an inconsistent state. Pending restores: " + 
Arrays.toString(inflightRestoreTimeline.getInstantsAsStream()
             .map(instant -> 
instant.getTimestamp()).collect(Collectors.toList()).toArray()));
+    TimestampUtils.validateForLatestTimestamp(metaClient, instantTime);

Review Comment:
   As discussed, this will need to be under a transaction as well.



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