[ 
https://issues.apache.org/jira/browse/ATLAS-3316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16879543#comment-16879543
 ] 

ASF subversion and git services commented on ATLAS-3316:
--------------------------------------------------------

Commit ae306ddfec258361ac46b6b2e8dabdd780f9426d in atlas's branch 
refs/heads/branch-2.0 from Mandar Ambawane
[ https://gitbox.apache.org/repos/asf?p=atlas.git;h=ae306dd ]

ATLAS-3316 getResolvedEntityVertex returns null if AtlasRelatedObjectId is 
referenced with AtlasObjectId

Signed-off-by: nixonrodrigues <[email protected]>
(cherry picked from commit eb513c315607946825831f2f80542b02b9476213)


> 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
>             Fix For: 3.0.0
>
>         Attachments: ATLAS-3316-V2.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)

Reply via email to