[ 
https://issues.apache.org/jira/browse/HDDS-15907?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Tsz-wo Sze updated HDDS-15907:
------------------------------
    Description: In IOzoneManagerLock, there are methods having Collection 
parameters.  It is inefficient since it requires either copying the underly 
Collection or implementing the complicated Collection interface.  It is better 
to use Iterable as in 
[Striped.bulkGet(Iterable)|https://guava.dev/releases/19.0/api/docs/com/google/common/util/concurrent/Striped.html#bulkGet(java.lang.Iterable)]
  (was: In IOzoneManagerLock, there are methods having Collection parameters.  
They are inefficient since they either require copying the underly Collection 
or need to implement the complicated Collection interface.  It is better to use 
Iterable as in 
[Striped.bulkGet(Iterable)|https://guava.dev/releases/19.0/api/docs/com/google/common/util/concurrent/Striped.html#bulkGet(java.lang.Iterable)])

> Do not use Collection in IOzoneManagerLock
> ------------------------------------------
>
>                 Key: HDDS-15907
>                 URL: https://issues.apache.org/jira/browse/HDDS-15907
>             Project: Apache Ozone
>          Issue Type: Sub-task
>          Components: OM
>            Reporter: Tsz-wo Sze
>            Assignee: Tsz-wo Sze
>            Priority: Major
>
> In IOzoneManagerLock, there are methods having Collection parameters.  It is 
> inefficient since it requires either copying the underly Collection or 
> implementing the complicated Collection interface.  It is better to use 
> Iterable as in 
> [Striped.bulkGet(Iterable)|https://guava.dev/releases/19.0/api/docs/com/google/common/util/concurrent/Striped.html#bulkGet(java.lang.Iterable)]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

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

Reply via email to