Return-Path: X-Original-To: apmail-falcon-dev-archive@minotaur.apache.org Delivered-To: apmail-falcon-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E52E1182D6 for ; Thu, 3 Sep 2015 12:13:48 +0000 (UTC) Received: (qmail 71598 invoked by uid 500); 3 Sep 2015 12:13:48 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 71558 invoked by uid 500); 3 Sep 2015 12:13:48 -0000 Mailing-List: contact dev-help@falcon.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@falcon.apache.org Delivered-To: mailing list dev@falcon.apache.org Received: (qmail 71547 invoked by uid 99); 3 Sep 2015 12:13:48 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Sep 2015 12:13:48 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 3DA4D182107 for ; Thu, 3 Sep 2015 12:13:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.774 X-Spam-Level: * X-Spam-Status: No, score=1.774 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.006] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id ytFq5UtOGqJA for ; Thu, 3 Sep 2015 12:13:47 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id 022F242B46 for ; Thu, 3 Sep 2015 12:13:46 +0000 (UTC) Received: (qmail 71498 invoked by uid 99); 3 Sep 2015 12:13:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Sep 2015 12:13:46 +0000 Date: Thu, 3 Sep 2015 12:13:46 +0000 (UTC) From: "sandeep samudrala (JIRA)" To: dev@falcon.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FALCON-1410) Entity submit fails when multiple threads try submitting same definition 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/FALCON-1410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] sandeep samudrala updated FALCON-1410: -------------------------------------- Attachment: FALCON-1410-v1.patch Minor. Missed on adding already obtained locks. > Entity submit fails when multiple threads try submitting same definition > ------------------------------------------------------------------------ > > Key: FALCON-1410 > URL: https://issues.apache.org/jira/browse/FALCON-1410 > Project: Falcon > Issue Type: Bug > Components: prism > Affects Versions: 0.7 > Reporter: Pragya Mittal > Assignee: sandeep samudrala > Attachments: FALCON-1410-v1.patch, FALCON-1410.patch > > > As part of submit feature we can submit entity any number of times and it will succeed, given the condition entity definition remains same. But when multiple threads try submitting common entity definition, it results in entity submission failure. Following is the stack trace. > {code} > 2015-08-19 05:26:38,201 ERROR - [357703038@qtp-212921632-197 - 4d3d611e-352c-40f2-94db-95ae53657e9b:pragya:POST//entities/submit/cluster] ~ Unable to persist entity object (AbstractEntityManager:199) > org.apache.falcon.entity.store.EntityAlreadyExistsException: (cluster) A99ac20e9-bb8bc0fa already registered with configuration store. Can't be submitted again. Try removing before submitting. > at org.apache.falcon.entity.store.ConfigurationStore.publish(ConfigurationStore.java:222) > at org.apache.falcon.resource.AbstractEntityManager.submitInternal(AbstractEntityManager.java:413) > at org.apache.falcon.resource.AbstractEntityManager.submit(AbstractEntityManager.java:196) > at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy.submit_aroundBody0(SchedulableEntityManagerProxy.java:144) > at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy$AjcClosure1.run(SchedulableEntityManagerProxy.java:1) > at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149) > at org.apache.falcon.aspect.AbstractFalconAspect.logAroundMonitored(AbstractFalconAspect.java:51) > at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy.submit(SchedulableEntityManagerProxy.java:119) > at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:497) > at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) > at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185) > at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)