yihua commented on code in PR #11790: URL: https://github.com/apache/hudi/pull/11790#discussion_r1757733674
########## hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/transaction/lock/BaseZookeeperBasedLockProvider.java: ########## @@ -0,0 +1,70 @@ +/* Review Comment: Do you want to update the docs of `DynamoDbBasedLockConfig#MAX_PARTITION_KEY_SIZE_BYTE`? ########## hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/transaction/lock/BaseZookeeperBasedLockProvider.java: ########## @@ -0,0 +1,70 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.hudi.client.transaction.lock; + +import org.apache.hudi.common.config.HoodieCommonConfig; +import org.apache.hudi.common.config.LockConfiguration; +import org.apache.hudi.common.lock.LockProvider; +import org.apache.hudi.common.table.HoodieTableConfig; +import org.apache.hudi.common.util.ValidationUtils; +import org.apache.hudi.common.util.hash.HashID; +import org.apache.hudi.storage.StorageConfiguration; + +import javax.annotation.concurrent.NotThreadSafe; + +import static org.apache.hudi.aws.utils.S3Utils.s3aToS3; +import static org.apache.hudi.common.util.StringUtils.concatenateWithThreshold; + +/** + * A zookeeper based lock. This {@link LockProvider} implementation allows to lock table operations + * using zookeeper. Users need to have a Zookeeper cluster deployed to be able to use this lock. + * + * This class derives the zookeeper base path from the hudi table base path (hoodie.base.path) and + * table name (hoodie.table.name), with lock key set to a hard-coded value. + */ +@NotThreadSafe +public class BaseZookeeperBasedLockProvider extends ZookeeperBasedLockProviderBase { Review Comment: The class hierarchy does not make sense to me. -- 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]
