lokeshj1703 commented on code in PR #12948:
URL: https://github.com/apache/hudi/pull/12948#discussion_r1995090598


##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/metadata/HoodieBackedTableMetadataWriter.java:
##########
@@ -344,9 +355,13 @@ private boolean isBootstrapNeeded(Option<HoodieInstant> 
latestMetadataInstant) {
    *
    * @param initializationTime       - Timestamp to use for the commit
    * @param partitionsToInit         - List of MDT partitions to initialize
+   * @param inflightInstantTimestamp - Current action instant responsible for 
this initialization
    */
-  private void initializeFromFilesystem(String initializationTime, 
List<MetadataPartitionType> partitionsToInit) throws IOException {
+  private boolean initializeFromFilesystem(String initializationTime, 
List<MetadataPartitionType> partitionsToInit, Option<String> 
inflightInstantTimestamp) throws IOException {
     Set<String> pendingDataInstants = getPendingDataInstants(dataMetaClient);
+    if 
(!metadataWriteHandler.shouldInitializeFromFilesystem(pendingDataInstants, 
inflightInstantTimestamp)) {

Review Comment:
   I am now returning false here. The behaviour is inline with table version 6 
now.



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