You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "charles shen (JIRA)" <ji...@apache.org> on 2018/12/07 06:48:00 UTC

[jira] [Created] (ATLAS-2992) Rdbms model

charles shen created ATLAS-2992:
-----------------------------------

             Summary: Rdbms model
                 Key: ATLAS-2992
                 URL: https://issues.apache.org/jira/browse/ATLAS-2992
             Project: Atlas
          Issue Type: Bug
          Components:  atlas-core
    Affects Versions: 1.0.0
            Reporter: charles shen


When creating a rdbms_db with referenced entity rdbms_intance, both rdbms_db and rdbms_instance will be created, but when creating another rdbms_db with the same rdbms_instance, the rdbms_instance will be treated as update though they are indeed the same. Looking into the rdbms model, rdbms_instance has attribute "databases" and rdbms_db has attribute "instance" constrained with inverseref to "databases" attribute to rdbms_instance.

So for first creation, rdbms_db will populate the "databases" attribute for rdbms_instance, for the second creation, altas will consider the rdbms_instance not equal since the "databases" attributes are different. This sounds like a model bug.

 



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