[jira] [Updated] (ATLAS-931) Delete entities fails when hard delete is configured

2016-06-21 Thread David Kantor (JIRA)

 [ 
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

Rebased with trunk

> 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)


[jira] [Updated] (ATLAS-931) Delete entities fails when hard delete is configured

2016-06-21 Thread David Kantor (JIRA)

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

David Kantor updated ATLAS-931:
---
Attachment: (was: rb49047.patch)

> 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
>
> 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)


[jira] [Updated] (ATLAS-931) Delete entities fails when hard delete is configured

2016-06-21 Thread David Kantor (JIRA)

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

David Kantor updated ATLAS-931:
---
Attachment: (was: rb49047.patch)

> 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)


[jira] [Updated] (ATLAS-931) Delete entities fails when hard delete is configured

2016-06-21 Thread David Kantor (JIRA)

 [ 
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)


[jira] [Updated] (ATLAS-931) Delete entities fails when hard delete is configured

2016-06-21 Thread David Kantor (JIRA)

 [ 
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

> 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)


[jira] [Updated] (ATLAS-931) Delete entities fails when hard delete is configured

2016-06-21 Thread David Kantor (JIRA)

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

David Kantor updated ATLAS-931:
---
Description: 
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)

  was:
With the code that I pulled on 17 June 2016, DELETE method fails with the 
following stack trace:

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)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:95)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:507)
at 
com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
at 
com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)
at 
com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75)
at 
com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:302)
at 
com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
at 
com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
at 
com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
at 
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1542)
at 
com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1473)
at 
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1419)
at 
com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1409)
at 
com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:409)
at 
com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:558)
at