> On April 5, 2019, 11:02 p.m., Madhan Neethiraj wrote:
> > agents-common/src/main/java/org/apache/ranger/plugin/policyengine/RangerPolicyEngineImpl.java
> > Lines 171 (patched)
> > <https://reviews.apache.org/r/70397/diff/1/?file=2137615#file2137615line171>
> >
> >     is 'other' (RangerPolicyEngineImpl) only shares with a single 
> > RangerPolicyEngineImpl?

Yes


- Abhay


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/70397/#review214433
-----------------------------------------------------------


On April 5, 2019, 3:09 a.m., Abhay Kulkarni wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/70397/
> -----------------------------------------------------------
> 
> (Updated April 5, 2019, 3:09 a.m.)
> 
> 
> Review request for ranger, Madhan Neethiraj, Pradeep Agrawal, and Ramesh Mani.
> 
> 
> Bugs: RANGER-2396
>     https://issues.apache.org/jira/browse/RANGER-2396
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> Create or Delete Policy operations in a disabled Ranger service causes 
> policy-cache for the service to out of sync with the policy database. One 
> manifestation of this is as seen in this scenario.
> 
> Disable a Ranger service
> Delete a policy in the service
> Operation is shown as successful, however, the policy listing page still 
> lists deleted policy, and viewing the policy causes error: 'Policy does not 
> exist'.
> 
> The root cause of this was that policy-cache was not updated when service was 
> disabled.
> 
> 
> Diffs
> -----
> 
>   
> agents-common/src/main/java/org/apache/ranger/plugin/policyengine/RangerPolicyEngineImpl.java
>  5e10e0d33 
>   
> agents-common/src/main/java/org/apache/ranger/plugin/util/ServicePolicies.java
>  3ce92125e 
>   security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java 
> 4b1c0c41a 
>   
> security-admin/src/main/java/org/apache/ranger/common/RangerServicePoliciesCache.java
>  86b3c004f 
> 
> 
> Diff: https://reviews.apache.org/r/70397/diff/1/
> 
> 
> Testing
> -------
> 
> Tested the scenario described in a cluster and ensured that the policy 
> listing page is updated correctly, and deleted policy is not listed on it.
> 
> 
> Thanks,
> 
> Abhay Kulkarni
> 
>

Reply via email to