Skip to content

Commit 4bc24e3

Browse files
Merge pull request #4456 from atlanhq/mesh-363-execution
MESH-365 : Internal-attribute mismatch error resolved
2 parents 73ee85a + 266dc13 commit 4bc24e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

repository/src/main/java/org/apache/atlas/repository/businesslineage/BusinessLineageService.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ public void addInputRelation(AtlasVertex assetVertex, AtlasVertex productVertex,
235235
relationship.setTypeName(REL_DATA_PRODUCT_TO_INPUT_PORTS);
236236
relationshipStoreV2.getOrCreate(assetVertex, productVertex, relationship, true);
237237
LOG.info("Added input relation between asset and product");
238+
updateInternalAttr(productVertex, assetGuid, operation);
238239
}
239-
updateInternalAttr(productVertex, assetGuid, operation);
240240
}
241241
} catch (AtlasBaseException e){
242242
LOG.error("Error while adding input relation", e);
@@ -251,8 +251,8 @@ public void removeInputRelation(AtlasVertex assetVertex, AtlasVertex productVert
251251
AtlasEdge inputPortEdge = graphHelper.getEdge(assetVertex, productVertex, INPUT_PORT_PRODUCT_EDGE_LABEL);
252252
if(inputPortEdge != null){
253253
graph.removeEdge(inputPortEdge);
254+
updateInternalAttr(productVertex, assetGuid, operation);
254255
}
255-
updateInternalAttr(productVertex, assetGuid, operation);
256256
}
257257
} catch (AtlasBaseException | RepositoryException e){
258258
LOG.error("Error while removing input relation", e);

0 commit comments

Comments
 (0)