You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "qinglin,xia (JIRA)" <ji...@apache.org> on 2017/05/11 09:38:04 UTC

[jira] [Created] (ATLAS-1779) When creating entities with array attribute, multiple entities would refer to the same array reference with the same name

qinglin,xia created ATLAS-1779:
----------------------------------

             Summary: When creating entities with array attribute, multiple entities would refer to the same array reference with the same name  
                 Key: ATLAS-1779
                 URL: https://issues.apache.org/jira/browse/ATLAS-1779
             Project: Atlas
          Issue Type: Bug
          Components:  atlas-core
    Affects Versions: 0.7-incubating
            Reporter: qinglin,xia
         Attachments: QQ截图20170511173640.png, refer1.png, refer2.png, table1.png, table2.png

Steps to Reproduce: 

1. Create a hbase_table Type with a attribute's data type set to array<hbase_column_family>

" hierarchicalMetaTypeName ":"org.apache.atlas.typesystem.types.ClassTy
pe",
" typeName ":"hbase_table",
" typeDescription ":null,
" attributeDefinitions ":[
{
" name ":"columnFamilies",
" dataTypeName ":"array<hbase_column_family>",
" multiplicity ":"collection",
" isComposite ":true,
" isUnique ":false,
" isIndexable ":true,
}]

2. create two entities of the hbase_table, naming "frontsurf" and "table6666666"

3. set the attribute columnFamilies of hbase_table to the same hbase_column_family -> "column_family"

Expected Result: 

the table1 and table2 entity would refer to different hbase_column_family entity

Actual Result: 
1. The table1 and table2 entity refer to the same hbase_column_family entity with the same GUID

2. This issue would coz the fact that I cannot delete table1 because table2 also has the hbase_column_family entity "column_familly"

PS: Screenshots as attached. 



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)