ATLAS-2841: Regression, Tag Propagation : When a table is moved from database1 to database2 , tag propagated from db1 still propagated to table.
(cherry picked from commit 6de9428f447b669d44874a951faa9081bb4b3fda) Project: http://git-wip-us.apache.org/repos/asf/atlas/repo Commit: http://git-wip-us.apache.org/repos/asf/atlas/commit/5c0a2023 Tree: http://git-wip-us.apache.org/repos/asf/atlas/tree/5c0a2023 Diff: http://git-wip-us.apache.org/repos/asf/atlas/diff/5c0a2023 Branch: refs/heads/branch-1.0 Commit: 5c0a2023ab72f5b02b603d9f94e1590bacfedfbb Parents: 1ea772f Author: Sarath Subramanian <[email protected]> Authored: Sun Aug 26 23:54:32 2018 -0700 Committer: Sarath Subramanian <[email protected]> Committed: Sun Aug 26 23:55:36 2018 -0700 ---------------------------------------------------------------------- .../apache/atlas/repository/store/graph/v1/DeleteHandlerV1.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/atlas/blob/5c0a2023/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/DeleteHandlerV1.java ---------------------------------------------------------------------- diff --git a/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/DeleteHandlerV1.java b/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/DeleteHandlerV1.java index c57e30a..4edc9da 100644 --- a/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/DeleteHandlerV1.java +++ b/repository/src/main/java/org/apache/atlas/repository/store/graph/v1/DeleteHandlerV1.java @@ -296,8 +296,8 @@ public abstract class DeleteHandlerV1 { // for relationship edges, inverse vertex's relationship attribute doesn't need to be updated. // only delete the reference relationship edge - if (GraphHelper.isRelationshipEdge(edge)) { - deleteEdge(edge, isInternalType); + if (isRelationshipEdge(edge)) { + deleteRelationships(Collections.singleton(edge), isInternalType); AtlasVertex referencedVertex = entityRetriever.getReferencedEntityVertex(edge, relationshipDirection, entityVertex);
