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)

Reply via email to