SteNicholas commented on code in PR #9365:
URL: https://github.com/apache/hudi/pull/9365#discussion_r1284327253


##########
hudi-utilities/src/main/java/org/apache/hudi/utilities/UtilHelpers.java:
##########
@@ -578,6 +580,20 @@ public static HoodieTableMetaClient createMetaClient(
         .build();
   }
 
+  public static void addLockOptions(String basePath, TypedProperties props) {
+    if (!props.containsKey(HoodieLockConfig.LOCK_PROVIDER_CLASS_NAME.key())) {
+      HoodieLockConfig lockConfig = HoodieLockConfig.newBuilder()
+          .withLockProvider(FileSystemBasedLockProvider.class)
+          .withLockWaitTimeInMillis(2000L) // 2s

Review Comment:
   Could the user only config the option like 
`hoodie.write.lock.wait_time_ms_between_retry` etc? Then this could follow 
these configuration.



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