[
https://issues.apache.org/jira/browse/HDDS-17569?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Tsz-wo Sze updated HDDS-17569:
------------------------------
Issue Type: Improvement (was: Bug)
> Get ReplicationConfig from ConfigurationSource is expensive
> -----------------------------------------------------------
>
> Key: HDDS-17569
> URL: https://issues.apache.org/jira/browse/HDDS-17569
> Project: Apache Ozone
> Issue Type: Improvement
> Components: common
> Reporter: Tsz-wo Sze
> Priority: Major
>
> {code}
> // ReplicationConfig.parseWithoutFallback(..),
> ReplicationConfigValidator validator =
> config.getObject(ReplicationConfigValidator.class);
> validator.validate(replicationConfig);
> {code}
> In the code above, getObject(..) uses the following reflections to create a
> ReplicationConfigValidator. In most case the same validator will be created
> again and again using reflections
> - newInstance
> - injectConfiguration
> - callPostConstruct
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]