This is an automated email from the ASF dual-hosted git repository. abhay pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/ranger.git
The following commit(s) were added to refs/heads/master by this push: new 47617bb RANGER-3584: ServiceTags are not computed correctly by applying incremental changes to existing ServiceTags 47617bb is described below commit 47617bb0610bd7a3c722e7ffd4718255ae9041b0 Author: Abhay Kulkarni <ab...@apache.org> AuthorDate: Wed Jan 12 16:19:19 2022 -0800 RANGER-3584: ServiceTags are not computed correctly by applying incremental changes to existing ServiceTags --- .../java/org/apache/ranger/plugin/util/RangerServiceTagsDeltaUtil.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/agents-common/src/main/java/org/apache/ranger/plugin/util/RangerServiceTagsDeltaUtil.java b/agents-common/src/main/java/org/apache/ranger/plugin/util/RangerServiceTagsDeltaUtil.java index 088b2b8..00e8d86 100644 --- a/agents-common/src/main/java/org/apache/ranger/plugin/util/RangerServiceTagsDeltaUtil.java +++ b/agents-common/src/main/java/org/apache/ranger/plugin/util/RangerServiceTagsDeltaUtil.java @@ -88,10 +88,13 @@ public class RangerServiceTagsDeltaUtil { if (cachedTagId == null) { serviceTags.cachedTags.put(tag, tagId); + tags.put(tagId, tag); } else { replacedIds.put(tagId, cachedTagId); deltaTagIter.remove(); } + } else { + tags.put(tagId, tag); } } }