[
https://issues.apache.org/jira/browse/HDDS-17204?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HDDS-17204:
----------------------------------
Labels: pull-request-available (was: )
> 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
>
> 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
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]