ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abhay Kulkarni <akulka...@hortonworks.com>
Subject Review Request 73350: RANGER-3284: Simplify processing of tasks scheduled to execute after current transaction is completed
Date Wed, 12 May 2021 00:56:36 GMT

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

Review request for ranger, Dineshkumar Yadav, Kishor Gollapalliwar, Madhan Neethiraj, Mehul
Parikh, and Velmurugan Periasamy.


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


Repository: ranger


Description
-------

Some tasks, such as updating policy/tag versions of a service after a policy/tag is updated,
are scheduled to run after the transaction changing policy/tag is completed. The scheduling
and execution of such tasks is complicated and can be simplified by directly queueing the
task to be executed on Transaction commit/completion.


Diffs
-----

  security-admin/src/main/java/org/apache/ranger/biz/PolicyRefUpdater.java 115e55629 
  security-admin/src/main/java/org/apache/ranger/biz/RoleRefUpdater.java 10a762576 
  security-admin/src/main/java/org/apache/ranger/rest/ServiceREST.java dd58e0587 


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


Testing
-------

Passed all unit tests.
Ensured that when a resource service is created, a tag service, if not already present, is
created and linked with the resource-service by the task scheduled to run after the transaction
that created resource service is committed.


Thanks,

Abhay Kulkarni


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message