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 2025/11/03 07:45:00 UTC

[jira] [Resolved] (HDDS-13851) Remove extra OzoneConfiguration#of from OzoneFileSystem#initialize

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

Attila Doroszlai resolved HDDS-13851.
-------------------------------------
    Fix Version/s: 2.2.0
       Resolution: Implemented

> Remove extra OzoneConfiguration#of from OzoneFileSystem#initialize
> ------------------------------------------------------------------
>
>                 Key: HDDS-13851
>                 URL: https://issues.apache.org/jira/browse/HDDS-13851
>             Project: Apache Ozone
>          Issue Type: Task
>            Reporter: Ivan Andika
>            Assignee: Ivan Andika
>            Priority: Minor
>              Labels: pull-request-available
>             Fix For: 2.2.0
>
>
> HDDS-9910 found that OzoneConfiguration#of on Configuration is costly and should be avoided as much as possible.
> However, BasicRootedOzoneFileSystem#initialize and BasicOzoneFileSystem#initialize still uses the costly OzoneConfiguration#of.
> {code:java}
> streamingAutoThreshold = (int) OzoneConfiguration.of(conf).getStorageSize(
>     OzoneConfigKeys.OZONE_FS_DATASTREAM_AUTO_THRESHOLD,
>     OzoneConfigKeys.OZONE_FS_DATASTREAM_AUTO_THRESHOLD_DEFAULT,
>     StorageUnit.BYTES); {code}
> We can try to check whether we can use Configuration#getStorageSize instead without calling OzoneConfiguration#of.



--
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