[
https://issues.apache.org/jira/browse/ATLAS-3316?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mandar Ambawane reassigned ATLAS-3316:
--------------------------------------
Assignee: Mandar Ambawane
Attachment: ATLAS-3316.patch
> getResolvedEntityVertex returns null if AtlasRelatedObjectId is referenced
> with AtlasObjectId
> ---------------------------------------------------------------------------------------------
>
> Key: ATLAS-3316
> URL: https://issues.apache.org/jira/browse/ATLAS-3316
> Project: Atlas
> Issue Type: Bug
> Reporter: Nixon Rodrigues
> Assignee: Mandar Ambawane
> Priority: Major
> Attachments: ATLAS-3316.patch
>
>
> In EntityGraphMapper.java
> {code:java}
> public AtlasVertex getResolvedEntityVertex(AtlasObjectId objId) {
> AtlasVertex vertex = resolvedIdsByUniqAttribs.get(objId);
> {code}
>
> getResolvedEntityVertex method returns null if AtlasObjectId has
> AtlasRelatedObjectId.
>
> Even if the AtlasObjectId and AtlasRelatedObjectId refer to the same entity
> (conceptually the same), they will have different hashcode, the server cannot
> use hashcode of AtlasRelatedObjectId to find AtlasObjectId.
>
> The fix is to create new AtlasObjectId from AtlasRelatedObjectId values and
> use that for lookup
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)