gooch created RANGER-5150:
-----------------------------

             Summary: Why do we need to modify the policy version when 
modifying a role?
                 Key: RANGER-5150
                 URL: https://issues.apache.org/jira/browse/RANGER-5150
             Project: Ranger
          Issue Type: Improvement
          Components: admin, plugins
    Affects Versions: 3.0.0
            Reporter: gooch


The problem we are currently facing is that when modifying a role, even if the 
policy has not actually been updated, it will still trigger the update of the 
policy cache in the admin. This has led to some additional performance 
overhead. Is this operation redundant? This line of code was introduced in 
RANGER - 2414, but I can't figure out the considerations behind it. Does the 
role update plugin need to re - fetch the policy, even if there are no changes?
In addition, only the role update operation will update the policy version. 
Additions and deletions will not.
 
org.apache.ranger.biz.RoleDBStore#updateRole
{code:java}
roleService.updatePolicyVersions(updatedRole.getId()); {code}
 



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

Reply via email to