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: [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]