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 2018/01/04 03:26:00 UTC

[jira] [Comment Edited] (ATLAS-2332) Creation of type with attributes having nested collection datatype fails

    [ https://issues.apache.org/jira/browse/ATLAS-2332?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16310502#comment-16310502 ] 

Madhan Neethiraj edited comment on ATLAS-2332 at 1/4/18 3:25 AM:
-----------------------------------------------------------------

Review board URL (branch-0.8): https://reviews.apache.org/r/64937/


was (Author: madhan.neethiraj):
Review board URL: https://reviews.apache.org/r/64937/

> Creation of type with attributes having nested collection datatype fails
> ------------------------------------------------------------------------
>
>                 Key: ATLAS-2332
>                 URL: https://issues.apache.org/jira/browse/ATLAS-2332
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: 0.8.1
>            Reporter: Madhan Neethiraj
>            Assignee: Madhan Neethiraj
>             Fix For: 1.0.0, 0.8.2
>
>         Attachments: ATLAS-2332-branch-0.8.patch, ATLAS-2332-master.patch
>
>
> Attempts to create a type with attributes having nested collection datatype, like map<string,array<string>> fails with the following error in Atlas log:
> {noformat}
> 2018-01-02 21:14:25,954 ERROR - [pool-2-thread-6 - 0b384d25-de77-4e6b-a05d-e997c8e46f41:] ~ Failed to restore type-system after TypeRegistry changes (DefaultMetadataService:829)
> org.apache.atlas.typesystem.exception.TypeNotFoundException: Unknown datatype: map<string,array<string>>
>         at org.apache.atlas.typesystem.types.TypeSystem.getDataType(TypeSystem.java:189)
>         at org.apache.atlas.typesystem.types.TypeSystem$TransientTypeSystem.getDataType(TypeSystem.java:695)
>         at org.apache.atlas.typesystem.types.TypeSystem.getDataType(TypeSystem.java:194)
>         at org.apache.atlas.typesystem.types.AttributeInfo.<init>(AttributeInfo.java:47)
>         at org.apache.atlas.typesystem.types.TypeSystem$TransientTypeSystem.constructAttributeInfo(TypeSystem.java:525)
>         at org.apache.atlas.typesystem.types.TypeSystem$TransientTypeSystem.constructHierarchicalType(TypeSystem.java:569)
>         at org.apache.atlas.typesystem.types.TypeSystem$TransientTypeSystem.orderAndConstructTypes(TypeSystem.java:612)
>         at org.apache.atlas.typesystem.types.TypeSystem$TransientTypeSystem.verifyTypes(TypeSystem.java:735)
>         at org.apache.atlas.typesystem.types.TypeSystem.createTransientTypeSystem(TypeSystem.java:353)
>         at org.apache.atlas.services.DefaultMetadataService.onChange(DefaultMetadataService.java:823)
>         at org.apache.atlas.repository.store.graph.AtlasTypeDefGraphStore$TypeRegistryUpdateHook.notifyListeners(AtlasTypeDefGraphStore.java:848)
>         at org.apache.atlas.repository.store.graph.AtlasTypeDefGraphStore$TypeRegistryUpdateHook.onComplete(AtlasTypeDefGraphStore.java:832)
>         at org.apache.atlas.GraphTransactionInterceptor.invoke(GraphTransactionInterceptor.java:77)
>         at com.google.inject.internal.InterceptorStackCallback$InterceptedMethodInvocation.proceed(InterceptorStackCallback.java:77)
>         at com.google.inject.internal.InterceptorStackCallback.intercept(InterceptorStackCallback.java:55)
>         at org.apache.atlas.repository.store.graph.v1.AtlasTypeDefGraphStoreV1$$EnhancerByGuice$$7922922.createTypesDef(<generated>)
>         at org.apache.atlas.web.rest.TypesREST.createAtlasTypeDefs(TypesREST.java:296)
>         at org.apache.atlas.web.resources.TypesResource.submit(TypesResource.java:109)
> {noformat}
> Here is the sample typedef JSON:
> {noformat}
> {
>   "classTypes": [
>     {
>       "typeName":                 "ComplexEntity",
>       "hierarchicalMetaTypeName": "org.apache.atlas.typesystem.types.ClassType",
>       "superTypes":               [ "Referenceable" ],
>       "typeDescription":          null,
>       "attributeDefinitions": [
>         {
>           "name":         "mapOfArrays",
>           "dataTypeName": "map<string,array<string>>",
>           "multiplicity": "optional",
>           "isComposite":  false,
>           "isUnique":     false,
>           "isIndexable":  false,
>           "reverseAttributeName": null
>         }
>       ]
>     }
>   ],
>   "enumTypes": [],
>   "structTypes": [],
>   "traitTypes": []
> }
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)