bharatviswa504 commented on a change in pull request #949: HDDS-1672. Improve 
locking in OzoneManager.
URL: https://github.com/apache/hadoop/pull/949#discussion_r295955274
 
 

 ##########
 File path: 
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/OzoneManagerLock.java
 ##########
 @@ -132,14 +157,13 @@ public void releaseUserLock(String user) {
    * @param volume Volume on which the lock has to be acquired
    */
   public void acquireVolumeLock(String volume) {
-    // Calling thread should not hold any bucket lock.
+    // Calling thread should not hold any bucket/user lock.
     // You can take an Volume while holding S3 bucket lock, since
-    // semantically an S3 bucket maps to the ozone volume. So we check here
-    // only if ozone bucket lock is taken.
-    if (hasAnyBucketLock()) {
+    // semantically an S3 bucket maps to the ozone volume.
+    if (hasAnyBucketLock() || hasAnyUserLock()) {
 
 Review comment:
   Done.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to