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

[jira] [Resolved] (ATLAS-459) create entity should fail if a composite entity is shared

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

Madhan Neethiraj resolved ATLAS-459.
------------------------------------
    Resolution: Abandoned

The referenced code is no more present in Atlas.

> create entity should fail if a composite entity is shared
> ---------------------------------------------------------
>
>                 Key: ATLAS-459
>                 URL: https://issues.apache.org/jira/browse/ATLAS-459
>             Project: Atlas
>          Issue Type: Bug
>            Reporter: Shwetha GS
>            Priority: Major
>
> {noformat}
> 2016-01-22 11:47:08,614 ERROR - [qtp1582368608-323 - ddb67cab-8e11-4434-9cb3-53d95fccc10a:] ~ Unable to persist entity instance (EntityResource:176)
> java.lang.NullPointerException
>         at org.apache.atlas.repository.graph.TypedInstanceToGraphMapper.updateClassEdge(TypedInstanceToGraphMapper.java:567)
>         at org.apache.atlas.repository.graph.TypedInstanceToGraphMapper.addOrUpdateClassVertex(TypedInstanceToGraphMapper.java:513)
>         at org.apache.atlas.repository.graph.TypedInstanceToGraphMapper.addOrUpdateCollectionEntry(TypedInstanceToGraphMapper.java:470)
>         at org.apache.atlas.repository.graph.TypedInstanceToGraphMapper.mapArrayCollectionToVertex(TypedInstanceToGraphMapper.java:370)
>         at org.apache.atlas.repository.graph.TypedInstanceToGraphMapper.mapAttributesToVertex(TypedInstanceToGraphMapper.java:208)
>         at org.apache.atlas.repository.graph.TypedInstanceToGraphMapper.mapInstanceToVertex(TypedInstanceToGraphMapper.java:183)
>         at org.apache.atlas.repository.graph.TypedInstanceToGraphMapper.addOrUpdateAttributesAndTraits(TypedInstanceToGraphMapper.java:163)
>         at org.apache.atlas.repository.graph.TypedInstanceToGraphMapper.addOrUpdateAttributesAndTraits(TypedInstanceToGraphMapper.java:139)
>         at org.apache.atlas.repository.graph.TypedInstanceToGraphMapper.mapTypedInstanceToGraph(TypedInstanceToGraphMapper.java:105)
>         at org.apache.atlas.repository.graph.GraphBackedMetadataRepository.updateEntities(GraphBackedMetadataRepository.java:298)
>         at org.apache.atlas.GraphTransactionInterceptor.invoke(GraphTransactionInterceptor.java:42)
>         at org.apache.atlas.services.DefaultMetadataService.updateEntities(DefaultMetadataService.java:384)
> {noformat}
> NullPointerException - The issue was because both hive_table and hive_storagedesc define columns(list<hive_column>) as composite attribute and the same hive_column entity is shared between both. Same entity can't be composite entity of multiple entities, doesn't make sense from the definition of composition. Two fixes are required here - 
> 1. create entity should fail if a composite entity is shared. should be fixed in this jira
> 2. Fix hive integration to not use the same hive_column entity across hive_table and hive_storagedesc - ATLAS-460



--
This message was sent by Atlassian Jira
(v8.3.4#803005)