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


Fix it, then Ship it!





agents-common/src/main/java/org/apache/ranger/plugin/policyengine/RangerPolicyEngineImpl.java
Lines 171 (patched)
<https://reviews.apache.org/r/70397/#comment300631>

    is 'other' (RangerPolicyEngineImpl) only shares with a single 
RangerPolicyEngineImpl?


- Madhan Neethiraj


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