----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/73301/#review222909 -----------------------------------------------------------
Fix it, then Ship it! agents-common/src/main/java/org/apache/ranger/plugin/model/RangerPolicyDelta.java Line 68 (original), 70 (patched) <https://reviews.apache.org/r/73301/#comment312082> Consider removing @JsonIgnore for policiesVersion, since the new filed is serialized/deserialized. - Madhan Neethiraj On April 28, 2021, 11:10 p.m., Abhay Kulkarni wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/73301/ > ----------------------------------------------------------- > > (Updated April 28, 2021, 11:10 p.m.) > > > Review request for ranger, Madhan Neethiraj, Ramesh Mani, and Velmurugan > Periasamy. > > > Bugs: RANGER-3253 > https://issues.apache.org/jira/browse/RANGER-3253 > > > Repository: ranger > > > Description > ------- > > Ranger admin, when incremental policies are enabled, retrieves changes to > policies from database since last provided policy-version and applies these > changes on the cached policies to compute new set of policies. This > computation needs to be more resilient - for example - if a change suggests > that a policy is created, but it already exists in the policy-cache, then it > should not be added again. > > > Diffs > ----- > > > agents-common/src/main/java/org/apache/ranger/plugin/model/RangerPolicyDelta.java > 1d2b1432b > > agents-common/src/main/java/org/apache/ranger/plugin/policyengine/RangerPolicyRepository.java > f92cd3f7b > > agents-common/src/main/java/org/apache/ranger/plugin/util/RangerPolicyDeltaUtil.java > 4661f79b9 > security-admin/src/main/java/org/apache/ranger/biz/ServiceDBStore.java > 4fb71f0b7 > > security-admin/src/main/java/org/apache/ranger/common/RangerServicePoliciesCache.java > 1176e0b9e > security-admin/src/main/java/org/apache/ranger/db/XXPolicyChangeLogDao.java > 0a1d1c142 > > > Diff: https://reviews.apache.org/r/73301/diff/4/ > > > Testing > ------- > > Passes all unit tests. > > > Thanks, > > Abhay Kulkarni > >
