-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74463/
-----------------------------------------------------------
(Updated June 13, 2023, 12:57 a.m.)
Review request for ranger, madhan, Madhan Neethiraj, Mahesh Bandal, Pradeep
Agrawal, Ramesh Mani, Sailaja Polavarapu, and Velmurugan Periasamy.
Changes
-------
Added JIRA details
Summary (updated)
-----------------
RANGER-4284: Additional logging messages to help with debugging when policy
deltas are enabled
Bugs: RANGER-4284
https://issues.apache.org/jira/browse/RANGER-4284
Repository: ranger
Description (updated)
-------
When policy deltas are enabled, it will help to debug any issues regarding
computation and application of policy deltas. The Jira addresses this by
printing the contents of Ranger policies in Ranger admin server and the
policy-deltas downloaded to ranger plugin as well as contents of Ranger
policies in the plugin generated by applying downloaded deltas to existing
policies.
Diffs
-----
agents-common/src/main/java/org/apache/ranger/plugin/policyengine/PolicyEngine.java
f1dc03944
agents-common/src/main/java/org/apache/ranger/plugin/policyengine/RangerResourceTrie.java
07eb5815c
agents-common/src/main/java/org/apache/ranger/plugin/service/RangerBasePlugin.java
b1e2ecbcc
agents-common/src/main/java/org/apache/ranger/plugin/store/ServiceStore.java
aecde05fb
agents-common/src/main/java/org/apache/ranger/plugin/util/PolicyRefresher.java
b2e5429ab
security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java
356b01f3c
security-admin/src/main/java/org/apache/ranger/common/RangerServicePoliciesCache.java
70d01e57e
security-admin/src/main/java/org/apache/ranger/db/XXPolicyChangeLogDao.java
483a7a04e
security-admin/src/main/resources/META-INF/jpa_named_queries.xml 14eca878f
Diff: https://reviews.apache.org/r/74463/diff/4/
Testing (updated)
-------
Compiled and ran all unit tests.
Set up configuration parameters :
Ranger-Admin:
ranger.admin.policy.save.to.disk=true and
ranger.admin.policy.cache.dir=/var/lib/ranger/admin/policy-cache
Hive-plugin:
ranger.plugin.hive.preserve.deltas=true
and verified the policy cache files are created both on the Ranger-admin server
node and on the HiveServer2 node in specified directories.
Verified that when ranger.admin.policy.save.to.disk and
ranger.plugin.hive.preserve.deltas parameters were not set or set to false, the
policies and deltas where not dumped to the files.
Thanks,
Abhay Kulkarni