atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sharmadha Sainath (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (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 19:52:41 GMT

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

Sharmadha Sainath updated ATLAS-1729:
-------------------------------------
    Description: 
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.

  was:
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 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.


> 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