Commit ce95c629 by Sarath Subramanian

ATLAS-3868: [Regression] removing a term-association doesn't remove…

ATLAS-3868: [Regression] removing a term-association doesn't remove classifications propagated from the term Signed-off-by: 's avatarSarath Subramanian <sarath@apache.org>
parent 0221e3dd
......@@ -53,6 +53,8 @@ public class HardDeleteHandlerV1 extends DeleteHandlerV1 {
LOG.debug("==> HardDeleteHandlerV1.deleteEdge({}, {})", GraphHelper.string(edge), force);
}
removeTagPropagation(edge);
graphHelper.removeEdge(edge);
}
}
......@@ -19,6 +19,7 @@
package org.apache.atlas.repository.store.graph.v1;
import org.apache.atlas.RequestContext;
import org.apache.atlas.exception.AtlasBaseException;
import org.apache.atlas.model.instance.AtlasEntity.Status;
import org.apache.atlas.repository.graph.GraphHelper;
import org.apache.atlas.repository.graphdb.AtlasEdge;
......@@ -61,12 +62,14 @@ public class SoftDeleteHandlerV1 extends DeleteHandlerV1 {
}
@Override
protected void deleteEdge(AtlasEdge edge, boolean force) {
protected void deleteEdge(AtlasEdge edge, boolean force) throws AtlasBaseException {
if (LOG.isDebugEnabled()) {
LOG.debug("==> SoftDeleteHandlerV1.deleteEdge({}, {})",GraphHelper.string(edge), force);
}
if (force) {
removeTagPropagation(edge);
graphHelper.removeEdge(edge);
} else {
Status state = AtlasGraphUtilsV2.getState(edge);
......
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