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

Vikas Kumar resolved RANGER-5211.
---------------------------------
    Fix Version/s: 3.0.0
       Resolution: Fixed

PR has been merged, hence Resolving the JIRA.

> Logic to check if metric collection is thread-safe or not should not parse 
> entire conf everytime
> ------------------------------------------------------------------------------------------------
>
>                 Key: RANGER-5211
>                 URL: https://issues.apache.org/jira/browse/RANGER-5211
>             Project: Ranger
>          Issue Type: Improvement
>          Components: kms
>            Reporter: Vikas Kumar
>            Assignee: Vikas Kumar
>            Priority: Major
>             Fix For: 3.0.0
>
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> KMSWebApp.isMetricCollectionThreadSafe() should not try to get KMS 
> configuration every time and then check if it is enabled or not. 
>  
> Configuration constructor acquires lock on the underlying kmsConf object and 
> hence other threads will have to wait.
> Instead, it should initialise an instance member once and should reuse the 
> same. It would be more efficient from performance point of view.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to