ivandika3 opened a new pull request, #9231: URL: https://github.com/apache/ozone/pull/9231
## What changes were proposed in this pull request? [HDDS-9910](https://issues.apache.org/jira/browse/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. ``` streamingAutoThreshold = (int) OzoneConfiguration.of(conf).getStorageSize( OzoneConfigKeys.OZONE_FS_DATASTREAM_AUTO_THRESHOLD, OzoneConfigKeys.OZONE_FS_DATASTREAM_AUTO_THRESHOLD_DEFAULT, StorageUnit.BYTES); ``` Since there is already another `OzoneConfiguration#of` on the `FileSystem`, we simply use that one. ## What is the link to the Apache JIRA https://issues.apache.org/jira/browse/HDDS-13851 ## How was this patch tested? CI. Clean CI run: https://github.com/ivandika3/ozone/actions/runs/18990531564 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
