You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Jayendra Parab (Jira)" <ji...@apache.org> on 2021/05/11 04:25:00 UTC

[jira] [Commented] (ATLAS-4278) Deferred Actions : Deleting a tag after disassociating it from a table which propagated fails

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

Jayendra Parab commented on ATLAS-4278:
---------------------------------------

The exception seen in the logs at the time of deletion of classification is :
{code:java}
2021-05-09 01:24:23,250 ERROR - [etp1992550266-179 - 55d97d73-3c4f-4985-81e2-696b41a3df1e:] ~ graph rollback due to exception  (GraphTransactionInterceptor:200)
org.apache.atlas.exception.AtlasBaseException: Given type tag1 has references
    at org.apache.atlas.repository.store.graph.v2.AtlasClassificationDefStoreV2.preDeleteByGuid(AtlasClassificationDefStoreV2.java:313)
    at org.apache.atlas.repository.store.graph.AtlasTypeDefGraphStore.deleteTypesDef(AtlasTypeDefGraphStore.java:587)
    at org.apache.atlas.repository.store.graph.AtlasTypeDefGraphStore.deleteTypeByName(AtlasTypeDefGraphStore.java:713)
    at org.apache.atlas.repository.store.graph.AtlasTypeDefGraphStore$$FastClassBySpringCGLIB$$5226c80b.invoke(<generated>)
    at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
    at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:737)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
    at org.apache.atlas.GraphTransactionInterceptor.invoke(GraphTransactionInterceptor.java:111)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
    at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:672)
    at org.apache.atlas.repository.store.graph.v2.AtlasTypeDefGraphStoreV2$$EnhancerBySpringCGLIB$$cc451202.deleteTypeByName(<generated>)
    at org.apache.atlas.web.rest.TypesREST.deleteAtlasTypeByName(TypesREST.java:478)
    at org.apache.atlas.web.rest.TypesREST$$FastClassBySpringCGLIB$$1c2e37c6.invoke(<generated>)
    at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
{code}

> Deferred Actions : Deleting a tag after disassociating it from a table which propagated fails
> ---------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-4278
>                 URL: https://issues.apache.org/jira/browse/ATLAS-4278
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>            Reporter: Jayendra Parab
>            Assignee: Jayendra Parab
>            Priority: Major
>
> # Create a lineage : table1 ---> process1 ----> table2
>  # Add tag tag1 to table1.
>  # Wait for task to complete,  it propagates to table2
>  # Disassociate tag from table1
>  # Wait for task to complete , it is removed from all tables and process.
>  # Attempt to delete the tag.
>  # Tag deletion fails with `tag1` has references , though the tag is not associated to any entity.
> If the tag was added to entity without propagate flag set to False , and then disassociated and deleted , it is deleted successfully.
> This issue is seen only with deferred actions enabled.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)