linliu-code commented on code in PR #14319:
URL: https://github.com/apache/hudi/pull/14319#discussion_r2700110093
##########
hudi-client/hudi-client-common/src/main/java/org/apache/hudi/client/transaction/TransactionManager.java:
##########
@@ -43,14 +43,19 @@ public class TransactionManager implements Serializable {
private Option<HoodieInstant> lastCompletedTxnOwnerInstant = Option.empty();
public TransactionManager(HoodieWriteConfig config, HoodieStorage storage) {
- this(new LockManager(config, (FileSystem) storage.getFileSystem()),
config.isLockRequired());
+ this(createLockManager(config, (FileSystem) storage.getFileSystem()),
config.isLockRequired());
}
protected TransactionManager(LockManager lockManager, boolean
isLockRequired) {
this.lockManager = lockManager;
this.isLockRequired = isLockRequired;
}
+ static LockManager createLockManager(HoodieWriteConfig config, FileSystem
fs) {
+ fs.getConf().addResource(fs.getConf());
Review Comment:
@lokeshj1703 , I created the test to test if the resources are accessible
during lock manager creation. I may not construct the test correctly.
--
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]