You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Ashutosh Mestry (JIRA)" <ji...@apache.org> on 2017/06/16 22:32:00 UTC

[jira] [Commented] (ATLAS-1876) Import/Export : AtlasSchemaViolationException during Import of entity associated to a tag with tag attribute value of datatype float

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

Ashutosh Mestry commented on ATLAS-1876:
----------------------------------------

I was able to duplicate this without using Import-Export.

Here are the steps:
- Create a tag with 1 float field. Say tag is 'fl1' and float attribute is 'fv'.
- Try to associate fl1 to an entity. Provide  4028235e+38 for 'fv' during association.

High chance that the association will fail. The server log indicate error in serialization.

Some research yielded similar problems faced by  other applications. Yet to think of a fix.

> Import/Export : AtlasSchemaViolationException during Import of entity associated to a tag with tag attribute value of datatype float
> ------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: ATLAS-1876
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1876
>             Project: Atlas
>          Issue Type: Bug
>          Components:  atlas-core
>    Affects Versions: 0.9-incubating
>            Reporter: Sharmadha Sainath
>            Assignee: Ashutosh Mestry
>         Attachments: AtlasSchemaViolationException_ExportImport.txt
>
>
> 1.In cluster1, created a tag float_tag with attribute float_max of datatype float.
> 2. In the same cluster , created table table1 and associated the tag float_tag to table1 , with attribute value for float_max as 3.4028235e+38 (maximum value for float).
> 3.Creation and tag association are successful.
> 4.Created table1.zip  by using Export API 
> 5. Using Import API , tried to import table1.zip to cluster2. Import failed with 
> {code}
> {"errorCode":"ATLAS-500-00-001","errorMessage":"org.apache.atlas.exception.AtlasBaseException: org.apache.atlas.repository.graphdb.AtlasSchemaViolationException: com.thinkaurelius.titan.core.SchemaViolationException: Value [3.4028235E38] is not an instance of the expected data type for property key [float_tag.float_max] and cannot be converted. Expected: class java.lang.Float, found: class java.lang.Double"}
> {code}
> Attached the error stack trace found in cluster2 application logs.
> This exception is seen only when the value for float attribute is given as 3.4028235e+38 . Other values like 0 , 2.5 , 1.4e+10 etc., are accepted and import is done successfully.



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