vamsikarnika commented on code in PR #14260:
URL: https://github.com/apache/hudi/pull/14260#discussion_r2559780994


##########
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/table/HoodieSparkTable.java:
##########
@@ -99,9 +100,16 @@ protected Option<HoodieTableMetadataWriter> 
getMetadataWriter(
       // Create the metadata table writer. First time after the upgrade this 
creation might trigger
       // metadata table bootstrapping. Bootstrapping process could fail and 
checking the table
       // existence after the creation is needed.
-      HoodieTableMetadataWriter metadataWriter = 
SparkHoodieBackedTableMetadataWriter.create(
-          context.getHadoopConf().get(), config, failedWritesCleaningPolicy, 
context,
-          Option.of(triggeringInstantTimestamp));
+      HoodieTableMetadataWriter metadataWriter;
+      if (config.shouldEnableBootstrapMetadataSync()) {
+        metadataWriter = SparkHoodieBackedMetadataSyncMetadataWriter.create(

Review Comment:
   No, we're relying on sparkTable to provide this metadata writer.. 



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