Vikas Kumar created RANGER-5211:
-----------------------------------
Summary: 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
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)