-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/74366/
-----------------------------------------------------------
(Updated April 4, 2023, 5:52 p.m.)
Review request for ranger, madhan, Madhan Neethiraj, Ramesh Mani, Sailaja
Polavarapu, and Velmurugan Periasamy.
Bugs: RANGER-4136
https://issues.apache.org/jira/browse/RANGER-4136
Repository: ranger
Description
-------
Ranger supports incremental tag downloads when configured. When a mapping for a
service-resource is changed, the tag download request provides only the updated
service-resource. RangerTagEnricher is expected to remove the existing
service-resource and the associated tags from its cache and add it back with
updated associated tags.
Current code does not remove the existing service-resource and its associated
tags correctly leading to incorrect tags to be retrieved for the
service-resource.
More debugging help is added to monitor the process flow for the incremental
tag processing.
Diffs (updated)
-----
agents-common/src/main/java/org/apache/ranger/plugin/contextenricher/RangerTagEnricher.java
198d24d97
agents-common/src/main/java/org/apache/ranger/plugin/util/ServiceTags.java
9b902789a
Diff: https://reviews.apache.org/r/74366/diff/3/
Changes: https://reviews.apache.org/r/74366/diff/2-3/
Testing
-------
Passed all unit tests. Verified that incremental tagged entities are correctly
processed and properly cleaned up.
Thanks,
Abhay Kulkarni