yihua commented on code in PR #18353:
URL: https://github.com/apache/hudi/pull/18353#discussion_r2989524798
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/metadata/HoodieBackedTableMetadataWriter.java:
##########
@@ -450,6 +450,13 @@ private boolean initializeFromFilesystem(String
dataTableInstantTime, List<Metad
}
}
+ // for a fresh table, lets defer RLI initialization
+ if (dataWriteConfig.getMetadataConfig().shouldDeferRliInitForFreshTable()
&& this.enabledPartitionTypes.contains(RECORD_INDEX)
Review Comment:
nit: `countInstants() == 0` iterates through all instants just to check
emptiness. Something like
`!...filterCompletedInstants().getInstants().findAny().isPresent()` (or an
`empty()` method if available on the timeline) would short-circuit immediately
on non-fresh tables.
--
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]