You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Ivan Andika (Jira)" <ji...@apache.org> on 2025/11/01 03:13:00 UTC

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

Ivan Andika updated HDDS-13851:
-------------------------------
    Summary: Remove extra OzoneConfiguration#of from OzoneFileSystem#initialize  (was: Remove OzoneConfiguration#of from OzoneFileSystem#initialize)

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