[ 
https://issues.apache.org/jira/browse/RANGER-5230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18020789#comment-18020789
 ] 

Fateh Singh commented on RANGER-5230:
-------------------------------------

new config set via service plugin configs (repo configs) 
ranger.plugin.<service_name>.policy.refresh.synchronous=true

> Support synchronous policy cache download for testing plugins
> -------------------------------------------------------------
>
>                 Key: RANGER-5230
>                 URL: https://issues.apache.org/jira/browse/RANGER-5230
>             Project: Ranger
>          Issue Type: Improvement
>          Components: Ranger
>            Reporter: Fateh Singh
>            Assignee: Fateh Singh
>            Priority: Major
>             Fix For: 3.0.0, 2.8.0
>
>          Time Spent: 5h 20m
>  Remaining Estimate: 0h
>
> {{Aim is to reduce time spent by tests in waiting for the plugin to sync 
> policy/tag changes}}
> {{RangerBasePlugin.refreshPoliciesAndTags()}} updates policies and tags on 
> demand. A configuration should be introduced to enable such refresh from all 
> RangerBasePlugin API that evaluates policies - like 
> {{{}isAccessAllowed(){}}}, {{{}evalDataMaskPolicies(){}}}, 
> {{{}evalRowFilterPolicies(){}}}, {{{}evalAuditPolicies(){}}}, 
> {{{}getResourceACLs(){}}}. The configuration can be named like 
> {{{}ranger.plugin.<serviceType>.plugin.cache.refresh.mode=async|sync{}}}{{{}refreshPoliciesAndTags(){}}}
>  is currently unused; it was added in RANGER-2349



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to