You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "ATLAS QA (JIRA)" <ji...@apache.org> on 2016/06/21 23:45:58 UTC
[jira] [Commented] (ATLAS-931) Delete entities fails when hard
delete is configured
[ https://issues.apache.org/jira/browse/ATLAS-931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15343051#comment-15343051 ]
ATLAS QA commented on ATLAS-931:
--------------------------------
{color:red}-1 overall{color}. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12812333/rb49047.patch
against master revision 7666ae9.
{color:red}-1 patch{color}. The patch command could not apply the patch.
Console output: https://builds.apache.org/job/PreCommit-ATLAS-Build/350//console
This message is automatically generated.
> 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)