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

Review request for ranger, Madhan Neethiraj, Pradeep Agrawal, and Velmurugan 
Periasamy.


Bugs: RANGER-2268
    https://issues.apache.org/jira/browse/RANGER-2268


Repository: ranger


Description
-------

Policies and tags are migrated to new schema introduced in RANGER-2203 using 
java patches. The time for migration can increase very rapidly as number of 
migrated policies/tags increase, and may take hours for a few thousand large 
policies containing many users and groups.

The fix involves updating every policy in a new transaction to ensure that JPA 
cache is kept to a minimum size.


Diffs
-----

  
security-admin/src/main/java/org/apache/ranger/patch/PatchForUpdatingPolicyJson_J10019.java
 6a21effe4 
  
security-admin/src/main/java/org/apache/ranger/patch/PatchForUpdatingTagsJson_J10020.java
 035e0239a 


Diff: https://reviews.apache.org/r/69187/diff/1/


Testing
-------

Tested migration with a few thousand policies. Ensured that the migration time 
is reduced considerably.


Thanks,

Abhay Kulkarni

Reply via email to