atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Madhan Neethiraj (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (ATLAS-1729) Atlas is not allowing deletion of type with no ACTIVE instances and no other types that refer this type.
Date Mon, 10 Apr 2017 22:41:41 GMT

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

Madhan Neethiraj resolved ATLAS-1729.
-------------------------------------
    Resolution: Not A Bug

Delete of a type is not allowed if the type has a reference - from an entity instance or another
type. The entity state doesn't matter here - it can be in ACTIVE or DELETED state. This is
by design - to avoid unresolvable type references from entities.

> Atlas is not allowing deletion of type with no ACTIVE instances and no other types that
refer this type.
> --------------------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-1729
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1729
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: 0.8-incubating, 0.9-incubating
>            Reporter: Sharmadha Sainath
>
> 1. Created a type 
> 2. Created entity for the type.
> 3. Tried to delete the type using
> {code}
>  /api/atlas/v2/types/typedefs
> {code}
> which failed with 409 Conflict
> {code}
> {"errorCode":"ATLAS-409-00-002","errorMessage":"Given type testType has references"}
> {code}
> 4.Deleted the entity created for the type . status of the entity is DELETED.
> 5. Issued the same delete request for the type again . Even though there are no ACTIVE
instances for the type and no other type has reference to this type, type deletion is failing
with the same exception.
> This might cause issues when user wants to delete the type and recreate type with same
name.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message