You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2022/04/21 11:38:07 UTC

[GitHub] [ozone] tanvipenumudy commented on a diff in pull request #3308: HDDS-6580. Introduce KEY_PATH_LOCK under OzoneManagerLock.Resource

tanvipenumudy commented on code in PR #3308:
URL: https://github.com/apache/ozone/pull/3308#discussion_r855092113


##########
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/lock/OzoneManagerLock.java:
##########
@@ -600,7 +604,8 @@ public enum Resource {
     USER_LOCK((byte) 3, "USER_LOCK"), // 15
 
     S3_SECRET_LOCK((byte) 4, "S3_SECRET_LOCK"), // 31
-    PREFIX_LOCK((byte) 5, "PREFIX_LOCK"); //63
+    KEY_PATH_LOCK((byte) 5, "KEY_PATH_LOCK"), //63

Review Comment:
   We are having existing UTs which cover lock precedence: `TestOzoneManagerLock.testLockingOrder()`, `TestOzoneManagerLock.testLockViolationsWithOneHigherLevelLock()`, `TestOzoneManagerLock.testLockViolations()` iterating over all `OzoneManagerLock.Resource.values()`. 
   
   The existing UTs (`TestOzoneManagerLock.reacquireResourceLock()`) also cover re-acquiring locks over these `OzoneManagerLock.Resource.values()`



-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org