danny0405 commented on a change in pull request #3381:
URL: https://github.com/apache/hudi/pull/3381#discussion_r682248124



##########
File path: 
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/metadata/HoodieBackedTableMetadataWriter.java
##########
@@ -248,7 +248,8 @@ protected void bootstrapIfNeeded(HoodieEngineContext 
engineContext, HoodieTableM
       if (!latestMetadataInstant.isPresent()) {
         LOG.warn("Metadata Table will need to be re-bootstrapped as no 
instants were found");
         rebootstrap = true;
-      } else if 
(datasetMetaClient.getActiveTimeline().isBeforeTimelineStarts(latestMetadataInstant.get().getTimestamp()))
 {
+      } else if 
(!latestMetadataInstant.get().getTimestamp().equals(SOLO_COMMIT_TIMESTAMP)
+          && 
datasetMetaClient.getActiveTimeline().isBeforeTimelineStarts(latestMetadataInstant.get().getTimestamp()))
 {

Review comment:
       Modify to avoid re-bootstrap for empty table.




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