Commit 080e4843 by Ashutosh Mestry

ATLAS-3977: Deleted entity behavior fix during migration. Part 2

parent 5aab626e
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
package org.apache.atlas.repository.patches; package org.apache.atlas.repository.patches;
import org.apache.atlas.exception.AtlasBaseException; import org.apache.atlas.exception.AtlasBaseException;
import org.apache.atlas.model.instance.AtlasEntity;
import org.apache.atlas.model.typedef.AtlasStructDef.AtlasAttributeDef; import org.apache.atlas.model.typedef.AtlasStructDef.AtlasAttributeDef;
import org.apache.atlas.pc.WorkItemManager; import org.apache.atlas.pc.WorkItemManager;
import org.apache.atlas.repository.Constants; import org.apache.atlas.repository.Constants;
...@@ -164,7 +165,9 @@ public class UniqueAttributePatch extends AtlasPatchHandler { ...@@ -164,7 +165,9 @@ public class UniqueAttributePatch extends AtlasPatchHandler {
LOG.debug("processItem(typeName={}, vertexId={})", typeName, vertexId); LOG.debug("processItem(typeName={}, vertexId={})", typeName, vertexId);
processIndexStringAttribute(vertexId, vertex, typeName, entityType); processIndexStringAttribute(vertexId, vertex, typeName, entityType);
processUniqueAttribute(vertexId, vertex, typeName, entityType); if (AtlasGraphUtilsV2.getState(vertex) == AtlasEntity.Status.ACTIVE) {
processUniqueAttribute(vertexId, vertex, typeName, entityType);
}
LOG.debug("processItem(typeName={}, vertexId={}): Done!", typeName, vertexId); LOG.debug("processItem(typeName={}, vertexId={}): Done!", typeName, vertexId);
} }
......
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