You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Merryle Wang (JIRA)" <ji...@apache.org> on 2019/05/31 20:00:00 UTC

[jira] [Assigned] (ATLAS-3130) Atlas stops reporting CTAS tables once an invalid relationshipDef is created

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

Merryle Wang reassigned ATLAS-3130:
-----------------------------------

    Assignee: Merryle Wang

> Atlas stops reporting CTAS tables once an invalid relationshipDef is created 
> -----------------------------------------------------------------------------
>
>                 Key: ATLAS-3130
>                 URL: https://issues.apache.org/jira/browse/ATLAS-3130
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>            Reporter: Umesh Padashetty
>            Assignee: Merryle Wang
>            Priority: Minor
>
> Created an invalid relationshipDef with the following body 
> {code:java}
> {
> "relationshipDefs": [{
> "propagateTags": "ONE_TO_TWO",
> "description": "default relationshipDef description with name: sample_dcef_KcFcR3xIN",
> "relationshipCategory": "ASSOCIATION",
> "typeVersion": "1.0",
> "attributeDefs": [],
> "endDef2": {
> "name": "inputs",
> "isLegacyAttribute": false,
> "isContainer": false,
> "cardinality": "SINGLE",
> "type": "Process",
> "description": "default relationshipEndDef description with name: inputs"
> },
> "endDef1": {
> "name": "hive_table_to_process",
> "isLegacyAttribute": false,
> "isContainer": false,
> "cardinality": "SET",
> "type": "hive_table",
> "description": "default relationshipEndDef description with name: hive_table_to_process"
> },
> "guid": "-302256315524233986",
> "name": "sample_dcef_KcFcR3xIN"
> }]
> }{code}
> After this, all the CTAS queries start failing with the following error 
> {code:java}
> 2019-04-09 17:47:38,992 ERROR - [NotificationHookConsumer thread-0:] ~ graph rollback due to exception (GraphTransactionInterceptor:154)
> org.apache.atlas.exception.AtlasBaseException: invalid relationshipDef: sample_dcef_KcFcR3xIN: end type 1: Process, end type 2: hive_column_lineage{code}
> The tables are created in the hive, but they are not reported in Atlas. Creation of such an invalid relationshipDef should ideally be blocked.



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