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


Ship it!




Ship It!

- Mehul Parikh


On May 12, 2022, 8:48 a.m., Kishor Gollapalliwar wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/73985/
> -----------------------------------------------------------
> 
> (Updated May 12, 2022, 8:48 a.m.)
> 
> 
> Review request for ranger, bhavik patel, Dineshkumar Yadav, Kirby Zhou, Abhay 
> Kulkarni, Madhan Neethiraj, Mehul Parikh, Pradeep Agrawal, Ramesh Mani, 
> Sailaja Polavarapu, and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-3724
>     https://issues.apache.org/jira/browse/RANGER-3724
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> Create Ranger Admin API to refresh policy cache, which will help refreshing 
> cache externally. 
> 
> Problem: In the current API, if a user accidently do not pass service_name, 
> it resets everything.
> 
> Changes: 
> 1. Updated existing API: enforcing service_name as mandatory parameter
> 2. Created new API: reset/ remove everything (all service policy cache)
> 
> 
> Diffs
> -----
> 
>   security-admin/src/main/java/org/apache/ranger/rest/ServiceREST.java 
> 1aa861424 
> 
> 
> Diff: https://reviews.apache.org/r/73985/diff/2/
> 
> 
> Testing
> -------
> 
> 1. mvn clean compile package install -U
> 2. Hit API with invalid service name 
> (http://localhost:6080/service/plugins/policies/cache/reset?name=invalid_service)
> 3. Hit API with empty service name 
> (http://localhost:6080/service/plugins/policies/cache/reset)
> 3. Hit API with valid service name 
> (http://localhost:6080/service/plugins/policies/cache/reset?name=test_hdfs)
> 4. Hit API with valid service name when cache is empty 
> (http://localhost:6080/service/plugins/policies/cache/reset?name=test_hdfs)
> 5. Hit API when cache is not empty 
> (http://localhost:6080/service/plugins/policies/cache/reset-all)
> 6. Hit API when cache is empty 
> (http://localhost:6080/service/plugins/policies/cache/reset-all)
> 
> 
> Thanks,
> 
> Kishor Gollapalliwar
> 
>

Reply via email to