jojochuang commented on code in PR #9353:
URL: https://github.com/apache/ozone/pull/9353#discussion_r2561090431
##########
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/lock/PoolBasedHierarchicalResourceLockManager.java:
##########
@@ -144,6 +160,40 @@ public void close() {
this.lockPool.close();
}
+ /**
+ * The PoolBasedHierachicalResourceLock class implements the
HierarchicalResourceLock
+ * and UncheckedAutoCloseable interfaces to manage hierarchical resource
locks from
+ * a shared pool. It ensures proper lock acquisition and release during its
lifecycle.
+ */
+ private final class PoolBasedHierachicalResourceLock implements
HierarchicalResourceLock,
Review Comment:
oh i see. One of which is the old implementation where it is locked by key.
This one's locked on the whole resource.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]