@NotThreadSafe public class ZookeeperBasedImplicitBasePathLockProvider extends BaseZookeeperBasedLockProvider
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.| Modifier and Type | Field and Description |
|---|---|
static String |
LOCK_KEY |
lockConfiguration, lockKey, zkBasePath| Constructor and Description |
|---|
ZookeeperBasedImplicitBasePathLockProvider(LockConfiguration lockConfiguration,
StorageConfiguration<?> conf) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
generateLogSuffixString() |
static String |
getLockBasePath(String hudiTableBasePath) |
protected String |
getLockKey(LockConfiguration lockConfiguration) |
protected String |
getZkBasePath(LockConfiguration lockConfiguration) |
close, generateLogStatement, getLock, getLockPath, tryLock, unlockclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCurrentOwnerLockInfo, lock, lockInterruptibly, newCondition, tryLockpublic static final String LOCK_KEY
public ZookeeperBasedImplicitBasePathLockProvider(LockConfiguration lockConfiguration, StorageConfiguration<?> conf)
protected String getZkBasePath(LockConfiguration lockConfiguration)
getZkBasePath in class BaseZookeeperBasedLockProviderprotected String getLockKey(LockConfiguration lockConfiguration)
getLockKey in class BaseZookeeperBasedLockProviderprotected String generateLogSuffixString()
generateLogSuffixString in class BaseZookeeperBasedLockProviderCopyright © 2024 The Apache Software Foundation. All rights reserved.