You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2019/07/05 09:36:00 UTC
[jira] [Commented] (ATLAS-3316) getResolvedEntityVertex returns
null if AtlasRelatedObjectId is referenced with AtlasObjectId
[ https://issues.apache.org/jira/browse/ATLAS-3316?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16879111#comment-16879111 ]
ASF subversion and git services commented on ATLAS-3316:
--------------------------------------------------------
Commit eb513c315607946825831f2f80542b02b9476213 in atlas's branch refs/heads/master from Mandar Ambawane
[ https://gitbox.apache.org/repos/asf?p=atlas.git;h=eb513c3 ]
ATLAS-3316 getResolvedEntityVertex returns null if AtlasRelatedObjectId is referenced with AtlasObjectId
Signed-off-by: nixonrodrigues <ni...@apache.org>
> 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-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)