[
https://issues.apache.org/jira/browse/HDDS-13851?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
ASF GitHub Bot updated HDDS-13851:
----------------------------------
Labels: pull-request-available (was: )
> 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
>
> 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: [email protected]
For additional commands, e-mail: [email protected]