atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neeru Gupta (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ATLAS-470) update types create a new index with same typename
Date Mon, 21 Mar 2016 19:50:25 GMT

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

Neeru Gupta commented on ATLAS-470:
-----------------------------------

I was able to reproduce the issue and data fixes itself on server restart. Because the issue
was only in cached data. Please review the changes https://reviews.apache.org/r/45043

> update types create a new index with same typename
> --------------------------------------------------
>
>                 Key: ATLAS-470
>                 URL: https://issues.apache.org/jira/browse/ATLAS-470
>             Project: Atlas
>          Issue Type: Bug
>    Affects Versions: 0.7-incubating
>         Environment: Sandbox
>            Reporter: Chethana
>            Assignee: Neeru Gupta
>            Priority: Critical
>         Attachments: applicationLog_op.txt, rb45043.patch
>
>
> Create a type - 
> POST -  http://localhost:21000/api/atlas/types
>   "enumTypes":[
>     
>   ],
>   "structTypes":[
>     
>   ],
>   "traitTypes":[
>     
>   ],
>   "classTypes":[
>     {
>       "superTypes":[
>         
>       ],
>       "hierarchicalMetaTypeName":"org.apache.atlas.typesystem.types.ClassType",
>       "typeName":"TypeDefString1",
>       "attributeDefinitions":[
>         {
>           "name":"isCompositeFalse",
>           "dataTypeName":"string",
>           "multiplicity":"optional",
>           "isComposite":false,
>           "isUnique":false,
>           "isIndexable":false,
>           "reverseAttributeName":null
>         }
>       ]
>     }
>   ]
> }
> Update this type
> PUT-
> http://localhost:21000/api/atlas/types
>   "enumTypes":[
>     
>   ],
>   "structTypes":[
>     
>   ],
>   "traitTypes":[
>     
>   ],
>   "classTypes":[
>     {
>       "superTypes":[
>         
>       ],
>       "hierarchicalMetaTypeName":"org.apache.atlas.typesystem.types.ClassType",
>       "typeName":"TypeDefString1",
>       "attributeDefinitions":[
>         {
>           "name":"isCompositeFalse",
>           "dataTypeName":"string",
>           "multiplicity":"optional",
>           "isComposite":false,
>           "isUnique":false,
>           "isIndexable":false,
>           "reverseAttributeName":null
>         },
>         {
>           "name":"isTestable",
>           "dataTypeName":"boolean",
>           "multiplicity":"optional",
>           "isComposite":false,
>           "isUnique":false,
>           "isIndexable":false,
>           "reverseAttributeName":null
>         }
>       ]
>     }
>   ]
> }
> actual-
> http://localhost:21000/api/atlas/types?type=CLASS
> {
> "results": [
> "TypeDefString1",
> "TypeDefString1"
> ],
> "count": 60,
> "requestId": "qtp1879648991-299 - 8581163e-cb86-4ef3-af71-ff4495884cb0"
> }
> actual-
> http://localhost:21000/api/atlas/types?type=CLASS
> expected
> {
> "results": [
> "TypeDefString1"
> ],
> "count": 60,
> "requestId": "qtp1879648991-299 - 8581163e-cb86-4ef3-af71-ff4495884cb0"
> }



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message