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


##########
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:
   My understanding for the compaction being scheduled in the past is because 
the log file is associate with a base file based on the completion time of the 
log file being greater than the requested time of the base file. If the 
compaction does not include the log file from T97 and then the commit completes 
on the data table, the log file will be lost because it is assumed to have been 
part of the compaction at T100 for example. 



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