You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@atlas.apache.org by "Nixon Rodrigues (JIRA)" <ji...@apache.org> on 2019/08/05 11:11:00 UTC
[jira] [Commented] (ATLAS-3050) OGM DataAccess: Error Condition
Change
[ https://issues.apache.org/jira/browse/ATLAS-3050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16900000#comment-16900000 ]
Nixon Rodrigues commented on ATLAS-3050:
----------------------------------------
[~ashutoshm], added fix for master, please review https://issues.apache.org/jira/secure/attachment/12976681/ATLAS-3050-master.patch
> 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
> Priority: Major
> Fix For: 0.8.3
>
> Attachments: ATLAS-3050-OGM-DataAccess-error-handling.patch, ATLAS-3050-master.patch, ATLAS-3050.patch
>
>
> *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.14#76016)