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

David Radley resolved ATLAS-1457.
---------------------------------
    Resolution: Duplicate

> Loop in Atlas using V2 entity API CONSTRAINT_TYPE_MAPPED_FROM_REF pointing to 
> its own type
> ------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-1457
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1457
>             Project: Atlas
>          Issue Type: Bug
>            Reporter: David Radley
>         Attachments: QuickStartLoop.java
>
>
> I am attempting to model parent child relationships with the V2 Entity API. 
> I define a type that has 
> - a single optional parent attribute of our type.
> - a children optional List CONSTRAINT_TYPE_MAPPED_FROM_REF pointing to its 
> own type and a parent attribute.
> When I create entities and try to knit them together as parent and child 
> Atlas loops.  I have included a test program I used to create this error.
> The console shows the loop:
>       at 
> org.apache.atlas.repository.graph.GraphToTypedInstanceMapper.mapVertexToClassReference(GraphToTypedInstanceMapper.java:191)
>       at 
> org.apache.atlas.repository.graph.GraphToTypedInstanceMapper.mapVertexToCollectionEntry(GraphToTypedInstanceMapper.java:248)
>       at 
> org.apache.atlas.repository.graph.GraphToTypedInstanceMapper.mapVertexToArrayInstance(GraphToTypedInstanceMapper.java:222)
>       at 
> org.apache.atlas.repository.graph.GraphToTypedInstanceMapper.mapVertexToAttribute(GraphToTypedInstanceMapper.java:142)
>       at 
> org.apache.atlas.repository.graph.GraphToTypedInstanceMapper.mapVertexToInstance(GraphToTypedInstanceMapper.java:116)
>       at 
> org.apache.atlas.repository.graph.GraphToTypedInstanceMapper.mapGraphToTypedInstance(GraphToTypedInstanceMapper.java:93)
>       at 
> org.apache.atlas.repository.graph.GraphToTypedInstanceMapper.mapVertexToClassReference(GraphToTypedInstanceMapper.java:191)
>       at 
> org.apache.atlas.repository.graph.GraphToTypedInstanceMapper.mapVertexToCollectionEntry(GraphToTypedInstanceMapper.java:248)
>       at 
> org.apache.atlas.repository.graph.GraphToTypedInstanceMapper.mapVertexToArrayInstance(GraphToTypedInstanceMapper.java:222)
>       at 
> org.apache.atlas.repository.graph.GraphToTypedInstanceMapper.mapVertexToAttribute(GraphToTypedInstanceMapper.java:142)
>       at 
> org.apache.atlas.repository.graph.GraphToTypedInstanceMapper.mapVertexToInstance(GraphToTypedInstanceMapper.java:116)
>       at 
> org.apache.atlas.repository.graph.GraphToTypedInstanceMapper.mapGraphToTypedInstance(GraphToTypedInstanceMapper.java:93)
>       at 
> org.apache.atlas.repository.graph.GraphToTypedInstanceMapper.mapVertexToClassReference(GraphToTypedInstanceMapper.java:191)
>       at 
> org.apache.atlas.repository.graph.GraphToTypedInstanceMapper.mapVertexToCollectionEntry(GraphToTypedInstanceMapper.java:248)
>       at 
> org.apache.atlas.repository.graph.GraphToTypedInstanceMapper.mapVertexToArrayInstance(GraphToTypedInstanceMapper.java:222)
>       at 
> org.apache.atlas.repository.graph.GraphToTypedInstanceMapper.mapVertexToAttribute(GraphToTypedInstanceMapper.java:142)
>       at 
> org.apache.atlas.repository.graph.GraphToTypedInstanceMapper.mapVertexToInstance(GraphToTypedInstanceMapper.java:116)
>   



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

Reply via email to