You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Madhan Neethiraj (JIRA)" <ji...@apache.org> on 2019/06/27 13:49:00 UTC
[jira] [Updated] (ATLAS-2855) StructInsance.setNull does not handle
enum types
[ https://issues.apache.org/jira/browse/ATLAS-2855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Madhan Neethiraj updated ATLAS-2855:
------------------------------------
Fix Version/s: (was: 0.8.4)
> StructInsance.setNull does not handle enum types
> ------------------------------------------------
>
> Key: ATLAS-2855
> URL: https://issues.apache.org/jira/browse/ATLAS-2855
> Project: Atlas
> Issue Type: Bug
> Components: atlas-core
> Affects Versions: 0.8.2
> Reporter: Daniel Kelencz
> Priority: Major
>
> When trying to:
> POST /api/atlas/v2/entity/bulk
> {noformat}
> {
> "entities": [
> {
> "typeName": "hive_db",
> "attributes": {
> "qualifiedName": "findme",
> "name": "findme",
> "clusterName": <here comes a 33482223 + 10 character long string>
> },
> "status": "ACTIVE",
> "createdBy": "admin",
> "updatedBy": "admin",
> "createTime": 1489585008165,
> "updateTime": 1489585008801,
> "version": 0,
> "classifications": [],
> "superTypes": []
> }
> ],
> "referredEntities": {}
> }{noformat}
> The following occurs in the logs:
> {noformat}
> Caused by: org.apache.atlas.AtlasException: Unknown datatype {name=hive_principal_type, description=hive_principal_type}
> at org.apache.atlas.typesystem.persistence.StructInstance.setNull(StructInstance.java:274)
> at org.apache.atlas.repository.audit.EntityAuditListener.clearAttributeValues(EntityAuditListener.java:175)
> at org.apache.atlas.repository.audit.EntityAuditListener.getAuditEventDetail(EntityAuditListener.java:158)
> at org.apache.atlas.repository.audit.EntityAuditListener.createEvent(EntityAuditListener.java:133)
> at org.apache.atlas.repository.audit.EntityAuditListener.onEntitiesAdded(EntityAuditListener.java:63)
> at org.apache.atlas.repository.store.graph.v1.AtlasEntityChangeNotifier.notifyListeners(AtlasEntityChangeNotifier.java:164)
> ... 101 more {noformat}
> This is because the hive_db contains hive_principal_type which is an enum, and StructInstance.setNull does not handle enum types.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)