lokeshj1703 commented on code in PR #14319:
URL: https://github.com/apache/hudi/pull/14319#discussion_r2685453569


##########
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:
   I am not very sure about the fix here. If I remove the changes in 
TransactionManager, the test still passes.



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