Commit 59ae59db by Sarath Subramanian

ATLAS-2781: Hard Delete : Deleting an entity which is associated to an term…

ATLAS-2781: Hard Delete : Deleting an entity which is associated to an term associated to a tag fails
parent ec396b93
...@@ -246,7 +246,14 @@ public class AtlasEntityChangeNotifier { ...@@ -246,7 +246,14 @@ public class AtlasEntityChangeNotifier {
return; return;
} }
RequestContext context = RequestContext.get();
for (String guid : entityPropagationMap.keySet()) { 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); AtlasEntityWithExtInfo entityWithExtInfo = instanceConverter.getAndCacheEntity(guid);
AtlasEntity entity = entityWithExtInfo != null ? entityWithExtInfo.getEntity() : null; AtlasEntity entity = entityWithExtInfo != null ? entityWithExtInfo.getEntity() : null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment