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/05/17 05:18:00 UTC

[jira] [Updated] (ATLAS-1943) Fix IT failure, lineage due to incorrect inverse reference check using relationship

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

Madhan Neethiraj updated ATLAS-1943:
------------------------------------
    Fix Version/s: 1.0.0
      Component/s:  atlas-core

> Fix IT failure, lineage due to incorrect inverse reference check using relationship
> -----------------------------------------------------------------------------------
>
>                 Key: ATLAS-1943
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1943
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>            Reporter: Sarath Subramanian
>            Assignee: Sarath Subramanian
>            Priority: Critical
>             Fix For: 1.0.0
>
>         Attachments: ATLAS-1943.1.patch
>
>
> Fix the following IT failures due to
> Failed tests: 
>   EntityJerseyResourceIT.testCompleteUpdate:952 » AtlasService Metadata service ...
>   EntityJerseyResourceIT.testPartialUpdate:877 » AtlasService Metadata service A...
> After creating a relationship for inverse reference attribute, call is made to create relationship for ownedRef attribute. But relationship for ownedRef has already been created and we see exception in log - “relationship already exists”. 
> For e.g.: after creating a relationship for hive_storagedesc.table, a new relationship to create hive_table.sd is attempted – but fails since relationship already exists (already created).  Added a new method getOrCreate(relationship) - If a relationship already exists between two entities on an attribute retrieve it, if not create one. Validated the patch by creating hive_table, views – lineage are rendered fine.



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