[
https://issues.apache.org/jira/browse/ATLAS-1012?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15373165#comment-15373165
]
Shwetha G S commented on ATLAS-1012:
------------------------------------
Yes, the reason the deleted entity is returned is so that even the deleted
entity should be viewable. There is getEntity() by attribute which returns only
the active entity
> DefaultMetadataService#getEntityDefinition(String guid) returns a deleted
> instance with SoftDeleteHandler
> ---------------------------------------------------------------------------------------------------------
>
> Key: ATLAS-1012
> URL: https://issues.apache.org/jira/browse/ATLAS-1012
> Project: Atlas
> Issue Type: Bug
> Affects Versions: 0.8-incubating
> Reporter: Satish Duggana
> Fix For: 0.8-incubating
>
>
> `DefaultMetadataService#getEntityDefinition(String guid)` returns a deleted
> instance when atlas.DeleteHandler.impl is configured with
> `org.apache.atlas.repository.graph.SoftDeleteHandler`
> Main reason seems to be about not checking for a valid state of the instance
> before it is returned.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)