-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74251/
-----------------------------------------------------------
(Updated Dec. 12, 2022, 1:27 p.m.)
Review request for ranger, Don Bosco Durai, Abhay Kulkarni, Madhan Neethiraj,
Mehul Parikh, Nikhil P, Pradeep Agrawal, Ramesh Mani, Selvamohan Neethiraj,
Sailaja Polavarapu, Subhrat Chaudhary, and Velmurugan Periasamy.
Bugs: RANGER-4012
https://issues.apache.org/jira/browse/RANGER-4012
Repository: ranger
Description
-------
getPolicyByName searches policy by serviceName, policyName simply by traverse
all policies in RangerServicePoliciesCache.
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
We need to call the DB to fetch policy instead of calling
RangerServicePoliciesCac
Diffs
-----
security-admin/src/main/java/org/apache/ranger/rest/PublicAPIsv2.java
c7a6ea0a6
security-admin/src/main/java/org/apache/ranger/rest/ServiceREST.java
e17494fa9
security-admin/src/test/java/org/apache/ranger/rest/TestPublicAPIsv2.java
2a123de93
Diff: https://reviews.apache.org/r/74251/diff/1/
Testing
-------
Thanks,
Ramachandran Krishnan