atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Madhan Neethiraj (Jira)" <j...@apache.org>
Subject [jira] [Resolved] (ATLAS-416) Entity creation with same entity name returns empty guid
Date Mon, 18 May 2020 01:59:00 GMT

     [ https://issues.apache.org/jira/browse/ATLAS-416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Madhan Neethiraj resolved ATLAS-416.
------------------------------------
    Resolution: Won't Fix

This refers to V1 version of Atlas; recommend using V2 APIs at {{/v2/entity/bulk}}

> Entity creation with same entity name returns empty guid 
> ---------------------------------------------------------
>
>                 Key: ATLAS-416
>                 URL: https://issues.apache.org/jira/browse/ATLAS-416
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 0.6-incubating
>            Reporter: Satya Narayan
>            Priority: Major
>
> Create entity is returning empty guid if entity with same name already exists.
> This use to work earlier. If we create entity with same name it returns empty guid id
in the response(earlier it use to return entity definition).
> URL : http://localhost:21000/api/atlas/entities
> Request 1: 
> -----------------------------------------------------------------------------
> {code:javascript}
> [{
> 	"jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Reference",
> 	"id": {
> 		"jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Id",
> 		"id": "-66131262182621",
> 		"version": 0,
> 		"typeName": "DATASOURCE"
> 	},
> 	"typeName": "DATASOURCE",
> 	"values": {
> 		"name": "HBASEDataSource",
> 		"description": "Data Source to connect HBASE",
> 		"InstanceName": "HBASEDataSource",
> 		"packageName": "org.test.discover.hbase",
> 		"options": "",
> 		"createdTime": "4 Jan, 2016 2:10:35 PM",
> 		"operation": "",
> 		"isDeleted": "false",
> 		"content": "hdfs:\/\/NAMENODE\/FILE_LOCATION;",
> 		"createdBy": "test",
> 		"updatedTime": "4 Jan, 2016 2:10:35 PM",
> 		"updatedBy": "test"
> 	},
> 	"traitNames": [],
> 	"traits": {}
> }]
> {code}
> ------------------------------------
> Response 1:
> -----------------------------------------
> {code:javascript}
> {
> 	"requestId": "qtp592179046-145 - a38d7453-efe1-4470-9df8-bc296b83b653",
> 	"GUID": ["1bfd13aa-b1ff-4ca8-9755-f760b59c009f"],
> 	"definition": {
> 		"jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Reference",
> 		"id": {
> 			"jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Id",
> 			"id": "1bfd13aa-b1ff-4ca8-9755-f760b59c009f",
> 			"version": 0,
> 			"typeName": "DATASOURCE"
> 		},
> 		"typeName": "DATASOURCE",
> 		"values": {
> 			"name": "HBASEDataSource",
> 			"description": "Data Source to connect HBASE",
> 			"InstanceName": "HBASEDataSource",
> 			"DataSet.DATASOURCE.description": null,
> 			"packageName": "org.test.discover.hbase",
> 			"options": null,
> 			"createdTime": "4 Jan, 2016 2:10:35 PM",
> 			"operation": null,
> 			"isDeleted": "false",
> 			"locationUri": null,
> 			"content": "hdfs:\/\/NAMENODE\/FILE_LOCATION;",
> 			"createdBy": "test",
> 			"updatedTime": "4 Jan, 2016 2:10:35 PM",
> 			"updatedBy": "test"
> 		},
> 		"traitNames": [],
> 		"traits": {}
> 	}
> }
> {code}
> Request 2:
> Above request with diff "packageName" attribute
> Response 2: 
> GUID array is coming empty
> {code:javascript}
> {
> 	"requestId": "qtp592179046-115 - 2b98e55d-db47-446c-8db2-2c31843eca29",
> 	"GUID": []
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message