Nixon Rodrigues created ATLAS-3316:
--------------------------------------
Summary: getResolvedEntityVertex returns null if AtlasObjectId has
AtlasRelatedObjectId
Key: ATLAS-3316
URL: https://issues.apache.org/jira/browse/ATLAS-3316
Project: Atlas
Issue Type: Bug
Reporter: Nixon Rodrigues
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)