ATLAS-2781: Hard Delete : Deleting an entity which is associated to an term associated to a tag fails
diff --git a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasEntityChangeNotifier.java b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasEntityChangeNotifier.java
index deb79e5..65c1e77 100644
--- a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasEntityChangeNotifier.java
+++ b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasEntityChangeNotifier.java
@@ -246,7 +246,14 @@
return;
}
+ RequestContext context = RequestContext.get();
+
for (String guid : entityPropagationMap.keySet()) {
+ // if entity is deleted, don't send propagated classifications add/remove notifications.
+ if (context.isDeletedEntity(guid)) {
+ continue;
+ }
+
AtlasEntityWithExtInfo entityWithExtInfo = instanceConverter.getAndCacheEntity(guid);
AtlasEntity entity = entityWithExtInfo != null ? entityWithExtInfo.getEntity() : null;