[HUDI-4484] Add default lock config options for flink metadata table (#6222)
This commit is contained in:
@@ -85,6 +85,10 @@ public class TransactionManager implements Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
public LockManager getLockManager() {
|
||||
return lockManager;
|
||||
}
|
||||
|
||||
public Option<HoodieInstant> getLastCompletedTransactionOwner() {
|
||||
return lastCompletedTxnOwnerInstant;
|
||||
}
|
||||
|
||||
@@ -311,6 +311,16 @@ public class HoodieLockConfig extends HoodieConfig {
|
||||
return this;
|
||||
}
|
||||
|
||||
public HoodieLockConfig.Builder withFileSystemLockPath(String path) {
|
||||
lockConfig.setValue(FILESYSTEM_LOCK_PATH, path);
|
||||
return this;
|
||||
}
|
||||
|
||||
public HoodieLockConfig.Builder withFileSystemLockExpire(Integer expireTime) {
|
||||
lockConfig.setValue(FILESYSTEM_LOCK_EXPIRE, String.valueOf(expireTime));
|
||||
return this;
|
||||
}
|
||||
|
||||
public HoodieLockConfig build() {
|
||||
lockConfig.setDefaults(HoodieLockConfig.class.getName());
|
||||
return lockConfig;
|
||||
|
||||
Reference in New Issue
Block a user