You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Attila Doroszlai (Jira)" <ji...@apache.org> on 2026/10/22 17:45:00 UTC

[jira] [Assigned] (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 ]

Attila Doroszlai reassigned HDDS-17204:
---------------------------------------

    Assignee: Prithvi S

> 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
>            Assignee: 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: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org