danny0405 commented on code in PR #11124:
URL: https://github.com/apache/hudi/pull/11124#discussion_r1587225060


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/BaseHoodieTableServiceClient.java:
##########
@@ -798,7 +795,11 @@ protected void archive(HoodieTable table) {
     }
     try {
       final Timer.Context timerContext = metrics.getArchiveCtx();
-      // We cannot have unbounded commit files. Archive commits if we have to 
archive
+      // We cannot have unbounded commit files. Archive commits if we have to 
archive.
+
+      // Reload table timeline to reflect the latest commits,
+      // there are some table services (for e.g, the cleaning) that executed 
right before the archiving.
+      table.getMetaClient().reloadActiveTimeline();

Review Comment:
   The master recreate the hoodie table to do the same thing, and I have 
checked that the archiving does not utilize the fs view from the table at all.



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