atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sharmadha Sainath (JIRA)" <>
Subject [jira] [Created] (ATLAS-2120) Inconsistency in Importing already existing types on backup cluster with new definition.
Date Fri, 08 Sep 2017 07:18:02 GMT
Sharmadha Sainath created ATLAS-2120:

             Summary: Inconsistency in Importing already existing types on backup cluster
with new definition.
                 Key: ATLAS-2120
             Project: Atlas
          Issue Type: Bug
          Components:  atlas-core
    Affects Versions: 0.9-incubating
            Reporter: Sharmadha Sainath
            Priority: Critical

1.Created a tag tag1 on cluster1 with attributes : 
*                 attrib1 : string
*                 attrib2 : integer

2.Created a tag with same name on cluster2 with attributes:
*                    attrib1: date
*                    attrib3: integer
(Note the tag names are same , and attrib1 is same but datatypes of attrib1 are different
in both the clusters)
3. On cluster1 , created an entity and associated the tag1 to the entity with attribute values
                   attrib1: "randstr"
                   attrib2: 5
              and exported the entity into zip file .
4.Tried to import the entity into cluster2. 
Import failed with 500 Internal server error and with following exception :
org.apache.atlas.repository.graphdb.AtlasSchemaViolationException: com.thinkaurelius.titan.core.SchemaViolationException:
Value [rand_str] is not an instance of the expected data type for property key [tag1.attrib1]
and cannot be converted. Expected: class java.lang.Long, found: class java.lang.String"}

Following is the inconsistency observed :
Entity is not imported into the cluster2 , but the type definition of tag1 in cluster2 had
3 attributes now (attrib1 : string , attrib2:Integer , attrib3:Integer) and 500 Internal server
error is thrown.

Normally, when a datatype of an attribute is attempted to be updated , Atlas throws the following
exception and the type is not updated.
{"errorCode":"ATLAS-400-00-029","errorMessage":"Data type update for attribute is not supported"}
Expected the same to happen while importing (i.e) Import failing with Bad request with the
proper error message.

This message was sent by Atlassian JIRA

View raw message