This is an automated email from the ASF dual-hosted git repository. madhan pushed a commit to branch branch-2.0 in repository https://gitbox.apache.org/repos/asf/atlas.git
commit 7cb38028564bdc4bb799e0c022504cbb574a562e Author: zhuangchong <[email protected]> AuthorDate: Mon May 16 14:35:08 2022 +0800 ATLAS-4706: code clean in the entity store v2 class Signed-off-by: Madhan Neethiraj <[email protected]> (cherry picked from commit f497d7224f5dd1fcb73c8523a800e2b6ae26c274) --- .../org/apache/atlas/repository/store/graph/v2/AtlasEntityStoreV2.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasEntityStoreV2.java b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasEntityStoreV2.java index d0e95e462..656c9d14b 100644 --- a/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasEntityStoreV2.java +++ b/repository/src/main/java/org/apache/atlas/repository/store/graph/v2/AtlasEntityStoreV2.java @@ -399,7 +399,7 @@ public class AtlasEntityStoreV2 implements AtlasEntityStore { throw new AtlasBaseException(AtlasErrorCode.UNKNOWN_TYPENAME, objectId.getTypeName()); } - guid = AtlasGraphUtilsV2.getGuidByUniqueAttributes(graph, typeRegistry.getEntityTypeByName(objectId.getTypeName()), objectId.getUniqueAttributes()); + guid = AtlasGraphUtilsV2.getGuidByUniqueAttributes(graph, entityType, objectId.getUniqueAttributes()); } AtlasEntity entity = updatedEntityInfo.getEntity();
