szetszwo opened a new pull request, #10852:
URL: https://github.com/apache/ozone/pull/10852

   ## What changes were proposed in this pull request?
   
   ```java
   //OzoneManagerLock
     private final Map<Class<? extends Resource>,
         Pair<Map<Resource, Striped<ReadWriteLock>>, ResourceLockTracker>> 
resourcelockMap;
   ```
   The resourcelockMap above is
    - inefficient: use a Map (the outer map) for only two elements.
    - hard to read/understand: too many layers
    - Apache Commons Pair (see HDDS-15908).
    - Not type safe: ResourceLockTracker is generic
    
   ## What is the link to the Apache JIRA
   
   HDDS-15909
   
   ## How was this patch tested?
   
   By existing tests.


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

Reply via email to