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

Attila Doroszlai resolved HDDS-17204.
-------------------------------------
    Fix Version/s: 2.3.0
       Resolution: Fixed

> Call getBlocksLatestVersionOnly() once in ofs/o3fs getFileBlockLocations
> ------------------------------------------------------------------------
>
>                 Key: HDDS-17204
>                 URL: https://issues.apache.org/jira/browse/HDDS-17204
>             Project: Apache Ozone
>          Issue Type: Improvement
>          Components: Ozone Client, Ozone Filesystem
>            Reporter: Prithvi S
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.3.0
>
>
> getFileBlockLocations in BasicOzoneClientAdapterImpl and 
> BasicRootedOzoneClientAdapterImpl calls getBlocksLatestVersionOnly() twice 
> (once for size, once to iterate). That helper always returns a new ArrayList 
> copy, so we allocate twice for no reason.
> Call it once and reuse the list.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

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

Reply via email to