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

Attila Doroszlai updated HDDS-13851:
------------------------------------
    Issue Type: Improvement  (was: Task)

> Remove extra OzoneConfiguration#of from OzoneFileSystem#initialize
> ------------------------------------------------------------------
>
>                 Key: HDDS-13851
>                 URL: https://issues.apache.org/jira/browse/HDDS-13851
>             Project: Apache Ozone
>          Issue Type: Improvement
>            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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to