swamirishi opened a new pull request, #9328: URL: https://github.com/apache/ozone/pull/9328
## What changes were proposed in this pull request? The current leveled resource implementation is not ideal for having an implementation since it only works on mask which can mean that only one resource can be there at one level. However for more complex locking levels this is not sufficient. Proposal here is to convert FlatResource into DAGLeveledResource with which one can enforce more complex ordering to ensure lock ordering. This would be useful for ensuring SNAPSHOT_DB_CONTENT_LOCK is always acquired before SNAPSHOT_DB_HANDLE_LOCK. This is to avoid any sort of deadlock later on. The same implementation can be also extended to bootstrap lock. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-13960 ## How was this patch tested? Added unit test -- 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]
