You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2026/10/21 03:22:00 UTC
[jira] [Updated] (HDDS-17204) Call getBlocksLatestVersionOnly() once in ofs/o3fs getFileBlockLocations
[ 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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org