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




agents-common/src/main/java/org/apache/ranger/plugin/util/CachedResourceEvaluators.java
Line 95 (original), 95 (patched)
<https://reviews.apache.org/r/75227/#comment315272>

    To avoid potential NPE, consider replacing:
    
    
request.getResourceMatchingScope().equals(RangerAccessRequest.ResourceMatchingScope.SELF_OR_DESCENDANTS))
    
    with:
    
    
RangerAccessRequest.ResourceMatchingScope.SELF_OR_DESCENDANTS.equals(request.getResourceMatchingScope())


- Madhan Neethiraj


On Oct. 22, 2024, 11:11 p.m., Abhay Kulkarni wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/75227/
> -----------------------------------------------------------
> 
> (Updated Oct. 22, 2024, 11:11 p.m.)
> 
> 
> Review request for ranger, madhan, Madhan Neethiraj, and Velmurugan Periasamy.
> 
> 
> Bugs: RANGER-4967
>     https://issues.apache.org/jira/browse/RANGER-4967
> 
> 
> Repository: ranger
> 
> 
> Description
> -------
> 
> RangerTagEnricher is optimized to search Trie objects for reduced scope. This 
> functionality should be usable by other modules that may need to deal with 
> the scale/performance issues similar to ones encountered when searching large 
> number of tags.
> 
> 
> Diffs
> -----
> 
>   
> agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerTagEnricher.java
>  92d2a7848 
>   
> agents-common/src/main/java/org/apache/ranger/plugin/util/CachedResourceEvaluators.java
>  PRE-CREATION 
> 
> 
> Diff: https://reviews.apache.org/r/75227/diff/3/
> 
> 
> Testing
> -------
> 
> Passed all unit tests cleanly.
> 
> 
> Thanks,
> 
> Abhay Kulkarni
> 
>

Reply via email to