[
https://issues.apache.org/jira/browse/RANGER-4012?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ramachandran updated RANGER-4012:
---------------------------------
Description:
getPolicyByName searches policy by serviceName, policyName simply by traverse
all policies in RangerServicePoliciesCache.
We need to call the DB to fetch policy instead of calling
RangerServicePoliciesCache
!Screenshot 2022-12-12 at 5.09.25 PM.png!
!Screenshot 2022-12-12 at 5.13.06 PM.png!
However, It takes more time to search for policies from the cache when there
are millions of policies
As well as The above REST API sometimes gives stable data due to the deleted
element is present in the Cache
was:
getPolicyByName searches policy by serviceName, policyName simply by traverse
all policies in RangerServicePoliciesCache.
We need to call the DB to fetch policy instead of calling
RangerServicePoliciesCache
!Screenshot 2022-12-12 at 5.09.25 PM.png!
!Screenshot 2022-12-12 at 5.13.06 PM.png!
However, It takes more time to search for policies from the cache when there
are millions of policies
As well as The above REST API sometimes gives stable data due to the deleted
element is present in the Cache
> getPolicyByName searches policy by serviceName, policyName simply by traverse
> all policies in RangerServicePoliciesCache instead of DB
> ----------------------------------------------------------------------------------------------------------------------------------------
>
> Key: RANGER-4012
> URL: https://issues.apache.org/jira/browse/RANGER-4012
> Project: Ranger
> Issue Type: Improvement
> Components: Ranger
> Reporter: Ramachandran
> Assignee: Ramachandran
> Priority: Major
> Labels: patch-available
> Attachments:
> 0001-RANGER-4012-getPolicyByName-searches-policy-by-servi.patch, Screenshot
> 2022-12-12 at 5.09.25 PM.png, Screenshot 2022-12-12 at 5.13.06 PM.png,
> getPolicyFromDB.png
>
>
> getPolicyByName searches policy by serviceName, policyName simply by traverse
> all policies in RangerServicePoliciesCache.
> We need to call the DB to fetch policy instead of calling
> RangerServicePoliciesCache
> !Screenshot 2022-12-12 at 5.09.25 PM.png!
>
> !Screenshot 2022-12-12 at 5.13.06 PM.png!
> However, It takes more time to search for policies from the cache when there
> are millions of policies
> As well as The above REST API sometimes gives stable data due to the deleted
> element is present in the Cache
>
>
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)