[ 
https://issues.apache.org/jira/browse/ATLAS-931?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

David Kantor updated ATLAS-931:
-------------------------------
    Attachment: rb49047.patch

Attached latest review board patch after addressing review comment.

> Delete entities fails when hard delete is configured
> ----------------------------------------------------
>
>                 Key: ATLAS-931
>                 URL: https://issues.apache.org/jira/browse/ATLAS-931
>             Project: Atlas
>          Issue Type: Bug
>            Reporter: Prasad  S Madugundu
>            Assignee: David Kantor
>            Priority: Blocker
>         Attachments: rb49047.patch
>
>
> When Atlas is configured for hard deletes, entity deletion fails with an 
> EntityNotFoundException when retrieving a deleted entity to include in the 
> response.  This occurs when the delete operation does not update any objects, 
> so that the list of updated guids returned by the service layer is empty and 
> EntityResource uses a deleted entity guid to retrieve the "sample" entity 
> definition to include the response.  If hard delete is enabled, the entity no 
> longer exists and the entity lookup fails.
> SEVERE: Could not find an entity in the repository with __guid = 
> d7b21c03-e518-44ed-83d3-2593e9c50dd1, 
> com.ibm.analytics.oms.exception.AtlasException: Could not find an entity in 
> the repository with __guid = d7b21c03-e518-44ed-83d3-2593e9c50dd1, 
> Caused by: org.apache.atlas.typesystem.exception.EntityNotFoundException: 
> Could not find an entity in the repository with __guid = 
> d7b21c03-e518-44ed-83d3-2593e9c50dd1, 
>       at 
> org.apache.atlas.repository.graph.GraphHelper.findVertex(GraphHelper.java:183)
>       at 
> org.apache.atlas.repository.graph.GraphHelper.getVertexForGUID(GraphHelper.java:301)
>       at 
> org.apache.atlas.repository.graph.GraphBackedMetadataRepository.getEntityDefinition(GraphBackedMetadataRepository.java:146)
>       at 
> org.apache.atlas.GraphTransactionInterceptor.invoke(GraphTransactionInterceptor.java:42)
>       at 
> org.apache.atlas.services.DefaultMetadataService.getEntityDefinition(DefaultMetadataService.java:371)
>       at 
> org.apache.atlas.web.resources.EntityResource.getResponse(EntityResource.java:171)
>       at 
> org.apache.atlas.web.resources.EntityResource.deleteEntities(EntityResource.java:388)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to