Repository: atlas Updated Branches: refs/heads/master 1eb995434 -> 614415e0a
ATLAS-2814: Fixed merge error. Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/614415e0 Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/614415e0 Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/614415e0 Branch: refs/heads/master Commit: 614415e0a7941e70cc4211ed2213b19057f02ec7 Parents: 1eb9954 Author: Ashutosh Mestry <[email protected]> Authored: Thu Oct 11 22:36:01 2018 -0700 Committer: Ashutosh Mestry <[email protected]> Committed: Thu Oct 11 22:36:01 2018 -0700 ---------------------------------------------------------------------- .../patches/001-base_model_replication_attributes.json | 10 ++++++++-- .../atlas/repository/impexp/AtlasServerService.java | 11 ++++++++--- 2 files changed, 16 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/atlas/blob/614415e0/addons/models/0000-Area0/patches/001-base_model_replication_attributes.json ---------------------------------------------------------------------- diff --git a/addons/models/0000-Area0/patches/001-base_model_replication_attributes.json b/addons/models/0000-Area0/patches/001-base_model_replication_attributes.json index 323a818..92c561f 100644 --- a/addons/models/0000-Area0/patches/001-base_model_replication_attributes.json +++ b/addons/models/0000-Area0/patches/001-base_model_replication_attributes.json @@ -13,7 +13,10 @@ "cardinality": "SET", "isIndexable": false, "isOptional": true, - "isUnique": false + "isUnique": false, + "options": { + "isSoftReference": "true" + } }, { "name": "replicatedTo", @@ -21,7 +24,10 @@ "cardinality": "SET", "isIndexable": false, "isOptional": true, - "isUnique": false + "isUnique": false, + "options": { + "isSoftReference": "true" + } } ] } http://git-wip-us.apache.org/repos/asf/atlas/blob/614415e0/repository/src/main/java/org/apache/atlas/repository/impexp/AtlasServerService.java ---------------------------------------------------------------------- diff --git a/repository/src/main/java/org/apache/atlas/repository/impexp/AtlasServerService.java b/repository/src/main/java/org/apache/atlas/repository/impexp/AtlasServerService.java index 8859a9d..3e0d580 100644 --- a/repository/src/main/java/org/apache/atlas/repository/impexp/AtlasServerService.java +++ b/repository/src/main/java/org/apache/atlas/repository/impexp/AtlasServerService.java @@ -88,8 +88,13 @@ public class AtlasServerService { } @GraphTransaction - public AtlasServer save(AtlasServer server) throws AtlasBaseException { - return dataAccess.save(server); + public AtlasServer save(AtlasServer server) { + try { + return dataAccess.save(server); + } + catch (AtlasBaseException ex) { + return server; + } } @GraphTransaction @@ -100,7 +105,7 @@ public class AtlasServerService { AtlasObjectId objectId = getObjectId(server); for (String guid : entityGuids) { - AtlasEntity.AtlasEntityWithExtInfo entityWithExtInfo = entityStore.getById(guid); + AtlasEntity.AtlasEntityWithExtInfo entityWithExtInfo = entityStore.getById(guid, false); updateAttribute(entityWithExtInfo, attributeName, objectId); } }
