Ashutosh Mestry created ATLAS-3050:
--------------------------------------

             Summary: OGM DataAccess: Error Condition Change
                 Key: ATLAS-3050
                 URL: https://issues.apache.org/jira/browse/ATLAS-3050
             Project: Atlas
          Issue Type: Bug
          Components:  atlas-core
    Affects Versions: 0.8.3
            Reporter: Ashutosh Mestry
            Assignee: Ashutosh Mestry
             Fix For: 0.8.3


*Background*

The _DataAccess.saveNoLoad_ method uses contents of _EntityMutationResponse_ to 
detect error condition. This is unnecessary as 
_AtlasEntityStore.createOrUpdate_ does the necessary error handling.

*Steps to Duplicate*
 # From Atlas UI, create a _hdfs_path_ entity, say _/warehouse/hr@cl1_
 # Export using the attached _export-options.json_. These options will force 
the creation of _AtlasServer_ entity.
 # Export succeeds.
 # Perform step 2 again.

Contents of _export-options.json_

 
{code:java}
{ "itemsToExport": [ { "typeName": "hdfs_path", "uniqueAttributes": { "path": 
"/warehouse/hr/" }} ], "options": { "replicatedTo": "clx" } }
 

{code}
Expected results:
 * Export should succeed with 4 files viz. _atlas-export-info.json, 
atlas-typesdef.json, atlas-export-order.json, <guid>.json_.

 

Actual results:
 * Export fails with server-side exception.

```

_org.apache.atlas.exception.AtlasBaseException: Save failed: 
\{guid=cd49c814-17f0-477f-805e-1944ccbcadf4, name=clx, fullName=clx, 
displayName=clx, 
additionalInfo={REPL_DETAILS={"74b26dcb-c1af-4835-96dd-c36cc8f5bed0":1549943677980}},
 urls=null}_

        _at 
org.apache.atlas.repository.ogm.DataAccess.saveNoLoad(DataAccess.java:56)_

        _at org.apache.atlas.repository.ogm.DataAccess.save(DataAccess.java:45)_

        _at 
org.apache.atlas.repository.impexp.AtlasServerService.save(AtlasServerService.java:93)_

        _at 
org.apache.atlas.repository.impexp.AtlasServerService$$FastClassBySpringCGLIB$$be2cd379.invoke(<generated>)_

```



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to