zhedoubushishi commented on a change in pull request #3486:
URL: https://github.com/apache/hudi/pull/3486#discussion_r744317945



##########
File path: 
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/config/HoodieLockConfig.java
##########
@@ -35,6 +38,13 @@
 import static 
org.apache.hudi.common.config.LockConfiguration.DEFAULT_LOCK_ACQUIRE_RETRY_WAIT_TIME_IN_MILLIS;
 import static 
org.apache.hudi.common.config.LockConfiguration.DEFAULT_ZK_CONNECTION_TIMEOUT_MS;
 import static 
org.apache.hudi.common.config.LockConfiguration.DEFAULT_ZK_SESSION_TIMEOUT_MS;
+import static 
org.apache.hudi.common.config.LockConfiguration.DYNAMODB_LOCK_BILLING_MODE_PROP_KEY;

Review comment:
       This part of code is depend on ```HoodieWriteConfig```:
   ```
   public static final ConfigProperty<String> DYNAMODB_LOCK_PARTITION_KEY = 
ConfigProperty
               .key(DYNAMODB_BASED_LOCK_PROPERTY_PREFIX + "partition_key")
               .noDefaultValue()
               .withInferFunction(cfg -> {
                   if (cfg.contains(HoodieWriteConfig.TBL_NAME)) {
                       return 
Option.of(cfg.getString(HoodieWriteConfig.TBL_NAME));
                   }
                   return Option.empty();
               })
               .withDocumentation("For DynamoDB based lock provider, the 
partition key for the DynamoDB lock table. "
                       + "Each Hudi dataset should has it's unique key so 
concurrent writers could refer to the same partition key."
                       + " By default we use the Hudi table name specified to 
be the partition key");
   ```
   
   So I didn't move it to ```hoodie-aws```.




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