From dev-return-20280-archive-asf-public=cust-asf.ponee.io@atlas.apache.org Wed Jan 10 02:11:04 2018 Return-Path: X-Original-To: archive-asf-public@eu.ponee.io Delivered-To: archive-asf-public@eu.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by mx-eu-01.ponee.io (Postfix) with ESMTP id E52F2180718 for ; Wed, 10 Jan 2018 02:11:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D4F58160C17; Wed, 10 Jan 2018 01:11:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 271FE160C40 for ; Wed, 10 Jan 2018 02:11:04 +0100 (CET) Received: (qmail 78943 invoked by uid 500); 10 Jan 2018 01:11:03 -0000 Mailing-List: contact dev-help@atlas.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@atlas.apache.org Delivered-To: mailing list dev@atlas.apache.org Received: (qmail 78932 invoked by uid 99); 10 Jan 2018 01:11:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Jan 2018 01:11:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C74241A0051 for ; Wed, 10 Jan 2018 01:11:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.711 X-Spam-Level: X-Spam-Status: No, score=-100.711 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id ZAwvM-qAdOTg for ; Wed, 10 Jan 2018 01:11:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 521CE5F39D for ; Wed, 10 Jan 2018 01:11:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B1A68E20C5 for ; Wed, 10 Jan 2018 01:11:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2AED1240F6 for ; Wed, 10 Jan 2018 01:11:00 +0000 (UTC) Date: Wed, 10 Jan 2018 01:11:00 +0000 (UTC) From: "Madhan Neethiraj (JIRA)" To: dev@atlas.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (ATLAS-2169) Delete request fails when hard delete is configured MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ATLAS-2169?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Madhan Neethiraj updated ATLAS-2169: ------------------------------------ Attachment: ATLAS-2169.patch Review board URL: https://reviews.apache.org/r/65058/ > Delete request fails when hard delete is configured > --------------------------------------------------- > > Key: ATLAS-2169 > URL: https://issues.apache.org/jira/browse/ATLAS-2169 > Project: Atlas > Issue Type: Bug > Affects Versions: 1.0.0, 0.8.1 > Reporter: Cade Parker > Assignee: Madhan Neethiraj > Attachments: ATLAS-2169.patch > > > I'm using Atlas version 0.8.1. When trying to delete an entity by id (DELETE /v2/entity/guid/\{guid\}), the server throws the following EntityNotFoundException: > {code} > 2017-09-22 20:47:25,104 ERROR - [pool-1-thread-5 - a5dca07b-477d-4876-a4a2-9682a1280071:] ~ Exception while getting a typed reference for the entity (AtlasInstanceConverter:114) > org.apache.atlas.typesystem.exception.EntityNotFoundException: Could not find entities in the repository with guids: [a9e0c914-8c4d-4377-876e-d03c3e1ca448] > at org.apache.atlas.repository.graph.GraphBackedMetadataRepository.getEntityDefinitions(GraphBackedMetadataRepository.java:220) > at org.apache.atlas.repository.graph.GraphBackedMetadataRepository.getEntityDefinition(GraphBackedMetadataRepository.java:172) > at org.apache.atlas.repository.graph.GraphBackedMetadataRepository$$FastClassBySpringCGLIB$$43a564a2.invoke() > at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) > at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:669) > at org.apache.atlas.repository.graph.GraphBackedMetadataRepository$$EnhancerBySpringCGLIB$$6e37b77a.getEntityDefinition() > at org.apache.atlas.services.DefaultMetadataService.getEntityDefinition(DefaultMetadataService.java:329) > at org.apache.atlas.repository.converters.AtlasInstanceConverter.getITypedReferenceable(AtlasInstanceConverter.java:112) > at org.apache.atlas.repository.store.graph.v1.AtlasEntityChangeNotifier.toITypedReferenceable(AtlasEntityChangeNotifier.java:184) > at org.apache.atlas.repository.store.graph.v1.AtlasEntityChangeNotifier.notifyListeners(AtlasEntityChangeNotifier.java:158) > at org.apache.atlas.repository.store.graph.v1.AtlasEntityChangeNotifier.onEntitiesMutated(AtlasEntityChangeNotifier.java:86) > at org.apache.atlas.repository.store.graph.v1.AtlasEntityStoreV1.deleteById(AtlasEntityStoreV1.java:390) > at org.apache.atlas.repository.store.graph.v1.AtlasEntityStoreV1$$FastClassBySpringCGLIB$$80c00649.invoke() > at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) > at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:738) > at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) > at org.apache.atlas.GraphTransactionInterceptor.invoke(GraphTransactionInterceptor.java:60) > at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) > at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:673) > at org.apache.atlas.repository.store.graph.v1.AtlasEntityStoreV1$$EnhancerBySpringCGLIB$$c12a5ccf.deleteById() > at org.apache.atlas.web.rest.EntityREST.deleteByGuid(EntityREST.java:236) > {code} > This bug seems exactly like the issue in ATLAS-931. The API resources look like they were refactored in 0.7 -> 0.8, and I believe that the error handling logic wasn't translated properly. > The same error is thrown if I try to remove an entity reference from an attribute that contains a list of references to an "ownedRef" entity (E.g. removing a column from a table entity).The exception is thrown, claiming it cannot find the removed column entity in the graph, but the column entity is still retrievable via the REST API (the status remains ACTIVE), and the table entity is not updated. -- This message was sent by Atlassian JIRA (v6.4.14#64029)