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/10/29 05:55:00 UTC

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

Ivan Andika created HDDS-13851:
----------------------------------

             Summary: Remove 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


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