[
https://issues.apache.org/jira/browse/RANGER-3902?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ramachandran updated RANGER-3902:
---------------------------------
Description:
dbLoadTime is not added correctly in RangerServicePoliciesCache
Proposal :
servicePoliciesFromDb =
serviceStore.getServicePolicyDeltasOrPolicies(serviceName,
cachedServicePoliciesVersion);
It should be calcuated properly after fetching servicePoliciesFromDb like
final long dbLoadTime = System.currentTimeMillis() - startTimeMs;
was:
Whenever policy creation fails , we used to log the entire
{color:#172b4d}policy{color} JSON
{code:java}
LOG.error("createPolicy(" + policy + ") failed", excp);{code}
Whenever a policy update fails, we used to log the entire
{color:#172b4d}policy{color} JSON
{code:java}
LOG.error("updatePolicy(" + policy + ") failed", excp);{code}
{color:#ff0000}Proposal :{color}
{color:#172b4d}During policy, creation/update fails{color}
{color:#172b4d}We can log for policyId/policyName for policy
creation/updation.{color}
> dbLoadTime is not added correctly in RangerServicePoliciesCache
> ---------------------------------------------------------------
>
> Key: RANGER-3902
> URL: https://issues.apache.org/jira/browse/RANGER-3902
> Project: Ranger
> Issue Type: Improvement
> Components: Ranger
> Affects Versions: 3.0.0
> Reporter: Ramachandran
> Assignee: Ramachandran
> Priority: Major
>
> dbLoadTime is not added correctly in RangerServicePoliciesCache
> Proposal :
> servicePoliciesFromDb =
> serviceStore.getServicePolicyDeltasOrPolicies(serviceName,
> cachedServicePoliciesVersion);
> It should be calcuated properly after fetching servicePoliciesFromDb like
> final long dbLoadTime = System.currentTimeMillis() - startTimeMs;
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)