Commit 614415e0 by Ashutosh Mestry

ATLAS-2814: Fixed merge error.

parent 1eb99543
...@@ -13,7 +13,10 @@ ...@@ -13,7 +13,10 @@
"cardinality": "SET", "cardinality": "SET",
"isIndexable": false, "isIndexable": false,
"isOptional": true, "isOptional": true,
"isUnique": false "isUnique": false,
"options": {
"isSoftReference": "true"
}
}, },
{ {
"name": "replicatedTo", "name": "replicatedTo",
...@@ -21,7 +24,10 @@ ...@@ -21,7 +24,10 @@
"cardinality": "SET", "cardinality": "SET",
"isIndexable": false, "isIndexable": false,
"isOptional": true, "isOptional": true,
"isUnique": false "isUnique": false,
"options": {
"isSoftReference": "true"
}
} }
] ]
} }
......
...@@ -88,8 +88,13 @@ public class AtlasServerService { ...@@ -88,8 +88,13 @@ public class AtlasServerService {
} }
@GraphTransaction @GraphTransaction
public AtlasServer save(AtlasServer server) throws AtlasBaseException { public AtlasServer save(AtlasServer server) {
return dataAccess.save(server); try {
return dataAccess.save(server);
}
catch (AtlasBaseException ex) {
return server;
}
} }
@GraphTransaction @GraphTransaction
...@@ -100,7 +105,7 @@ public class AtlasServerService { ...@@ -100,7 +105,7 @@ public class AtlasServerService {
AtlasObjectId objectId = getObjectId(server); AtlasObjectId objectId = getObjectId(server);
for (String guid : entityGuids) { for (String guid : entityGuids) {
AtlasEntity.AtlasEntityWithExtInfo entityWithExtInfo = entityStore.getById(guid); AtlasEntity.AtlasEntityWithExtInfo entityWithExtInfo = entityStore.getById(guid, false);
updateAttribute(entityWithExtInfo, attributeName, objectId); updateAttribute(entityWithExtInfo, attributeName, objectId);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment