danny0405 commented on code in PR #11809:
URL: https://github.com/apache/hudi/pull/11809#discussion_r1726030804


##########
hudi-spark-datasource/hudi-spark-common/src/main/scala/org/apache/hudi/HoodieCLIUtils.scala:
##########
@@ -109,10 +111,15 @@ object HoodieCLIUtils {
       .toMap
   }
 
-  def getLockOptions(tablePath: String): Map[String, String] = {
-    val props = FileSystemBasedLockProvider.getLockConfig(tablePath)
-    props.stringPropertyNames.asScala
-      .map(key => key -> props.getString(key))
-      .toMap
+  def getLockOptions(tablePath: String, schema: String, lockConfig: 
TypedProperties): Map[String, String] = {
+    val customSupportedFSs = 
lockConfig.getStringList(HoodieCommonConfig.HOODIE_FS_ATOMIC_CREATION_SUPPORT.key,
 ",", new ArrayList[String])
+    if (customSupportedFSs.contains(schema) || 
StorageSchemes.isAtomicCreationSupported(schema)) {

Review Comment:
   Spark seems to have zookeeper as the default lock provider when multi-writer 
is needed, while Flink indeed configured a fs lock provider anyway, can you 
share the logic where fs lock provider is configured with spark ?



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