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


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/metadata/HoodieBackedTableMetadataWriter.java:
##########
@@ -1583,6 +1583,7 @@ static HoodieActiveTimeline 
runPendingTableServicesOperationsAndRefreshTimeline(
    * deltacommit.
    */
   void compactIfNecessary(BaseHoodieWriteClient<?,I,?,O> writeClient, 
Option<String> latestDeltaCommitTimeOpt) {
+    // TODO how to handle this case where compaction needs to be written in 
the past

Review Comment:
   The comments in this code mention that the compaction cannot be run on log 
files that belong to metadata table commits that correspond to data table 
commits that have not yet completed since these commits could be rolled back if 
there is some failure. To account for this, the compaction instant is created 
before the incomplete commit in the data table if there is one. This time is 
therefore in the past.
   
   I am not sure of a better way to handle this at this point but it breaks the 
pattern of generating the instant time alongside the plan.



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