Prithvi S created HDDS-17204:
--------------------------------
Summary: 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
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]