You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@atlas.apache.org by sa...@apache.org on 2020/04/10 22:23:12 UTC
[atlas] branch master updated: ATLAS-3707: Added check to avoid new
audit to be created for delete in case of purge
This is an automated email from the ASF dual-hosted git repository.
sarath pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/atlas.git
The following commit(s) were added to refs/heads/master by this push:
new c135962 ATLAS-3707: Added check to avoid new audit to be created for delete in case of purge
c135962 is described below
commit c135962b8340444943223a33fce67a06fda55b5b
Author: sidmishra <si...@cloudera.com>
AuthorDate: Mon Mar 30 11:56:40 2020 -0700
ATLAS-3707: Added check to avoid new audit to be created for delete in case of purge
Signed-off-by: Sarath Subramanian <sa...@apache.org>
---
.../apache/atlas/repository/store/graph/v2/EntityGraphMapper.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
index 0d5b631..8819688 100644
--- a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
+++ b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/EntityGraphMapper.java
@@ -318,8 +318,10 @@ public class EntityGraphMapper {
RequestContext req = RequestContext.get();
- for (AtlasEntityHeader entity : req.getDeletedEntities()) {
- resp.addEntity(DELETE, entity);
+ if(!req.isPurgeRequested()) {
+ for (AtlasEntityHeader entity : req.getDeletedEntities()) {
+ resp.addEntity(DELETE, entity);
+ }
}
for (AtlasEntityHeader entity : req.getUpdatedEntities()) {