yuzhaojing commented on code in PR #12642:
URL: https://github.com/apache/hudi/pull/12642#discussion_r1948425028


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieBaseRelation.scala:
##########
@@ -288,7 +288,7 @@ abstract class HoodieBaseRelation(val sqlContext: 
SQLContext,
 
   protected def timeline: HoodieTimeline =
   // NOTE: We're including compaction here since it's not considering a 
"commit" operation
-    metaClient.getCommitsAndCompactionTimeline.filterCompletedInstants
+    
metaClient.reloadActiveTimeline().getCommitsAndCompactionTimeline.filterCompletedInstants

Review Comment:
   we still need to reload the active timeline, because wo use this timeline to 
build `HoodieTableFileSystemView`, if the active timeline is not refreshed, 
then the constructed `HoodieTableFileSystemView` will also not be in the latest 
state.



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