Madhan Neethiraj created RANGER-3670:
----------------------------------------

             Summary: Policy update creates unnecessary entries in transaction 
log table
                 Key: RANGER-3670
                 URL: https://issues.apache.org/jira/browse/RANGER-3670
             Project: Ranger
          Issue Type: Bug
          Components: Ranger
    Affects Versions: 2.2.0
            Reporter: Madhan Neethiraj


When a policy is updated, Ranger creates entries in x_trx_log table  for each 
updated field in the policy. For example, when a policy is disabled, following 
record is added in this table:

 
||object_id||object_name||attr_name||prev_val||new_val||
|6|all - database|Policy Status|true|false|

 

Following 2 additional records are added in this table even though these fields 
are not updated in the policy:
||object_id||object_name||attr_name||prev_val||new_val||
|6|all - database|Validity Schedules|[]|[]|
|6|all - database|Policy Conditions| | |

 

Above entries should be avoided.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to