Tsz-wo Sze created HDDS-17569:
---------------------------------

             Summary: Get ReplicationConfig from ConfigurationSource is 
expensive
                 Key: HDDS-17569
                 URL: https://issues.apache.org/jira/browse/HDDS-17569
             Project: Apache Ozone
          Issue Type: Bug
          Components: common
            Reporter: Tsz-wo Sze


{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]

Reply via email to