You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Madhan Neethiraj (JIRA)" <ji...@apache.org> on 2018/03/17 19:21:00 UTC

[jira] [Commented] (ATLAS-2498) Soft and hard deletes, deleting a "DELETED" entity and cleanup of unused types

    [ https://issues.apache.org/jira/browse/ATLAS-2498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16403696#comment-16403696 ] 

Madhan Neethiraj commented on ATLAS-2498:
-----------------------------------------

bq. Is the atlas.DeleteHandler.impl configuration key supported in this version?
Starting with Apache Atlas 0.8 release, please set the following property to enable hard-delete:
{noformat}
  atlas.DeleteHandlerV1.impl=org.apache.atlas.repository.store.graph.v1.HardDeleteHandlerV1
{noformat}
 
bq. Is it possible to delete a "DELETED" entity?
Currently attempt to delete an entity which is in 'DELETED' state is ignored. However, when hard-delete is configured, it makes sense to delete such entities. It will enable the usecase you describe above.

bq. Does Atlas version 0.8.0 support hard deletes
Yes, it does. However, this is not a recommended configuration in production deployments - given role of Atlas in governance domain.

> Soft and hard deletes, deleting a "DELETED" entity and cleanup of unused types
> ------------------------------------------------------------------------------
>
>                 Key: ATLAS-2498
>                 URL: https://issues.apache.org/jira/browse/ATLAS-2498
>             Project: Atlas
>          Issue Type: Improvement
>    Affects Versions: 0.8-incubating
>            Reporter: Mark Kiami
>            Priority: Major
>
> Hello,
> Since the documentation on this feature not clear, could you please answer or confirm the following:
>  # When an entity is deleted, its status goes to "DELETED", this is a soft delete.
>  # Does Atlas version 0.8.0 support hard deletes (HDP 2.6.4 ships with 0.8.0)?
>  # Is the atlas.DeleteHandler.impl configuration key supported in this version?
>  # Is it possible to delete a "DELETED" entity?
> I am asking this because I am stuck in the following scenario:
>  * Create a new ENTITY type named "custom_type"
>  * Create an entity of that type "entity_1_of_custom_type", its status is "ACTIVE"
>  * Delete the entity "entity_1_of_custom_type", its status is "DELETED"
>  * Delete the ENTITY type named "custom_type"
>  * I get an error: \{"errorCode":"ATLAS-409-00-002","errorMessage":"Given type custom_type has references"}
> How is it possible in this case to cleanup both the DELETED entity and the unused type "custom_type"?
> Thanks!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)