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 951A318B38 for ; Thu, 26 Nov 2015 10:14:14 +0000 (UTC) Received: (qmail 93297 invoked by uid 500); 26 Nov 2015 10:14:14 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 93260 invoked by uid 500); 26 Nov 2015 10:14:14 -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 93248 invoked by uid 99); 26 Nov 2015 10:14:13 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Nov 2015 10:14:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 79F1EC74AD for ; Thu, 26 Nov 2015 10:14:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.02 X-Spam-Level: X-Spam-Status: No, score=-0.02 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id c6cKD5rJmrI2 for ; Thu, 26 Nov 2015 10:14:12 +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 1783142AFA for ; Thu, 26 Nov 2015 10:14:12 +0000 (UTC) Received: (qmail 92133 invoked by uid 99); 26 Nov 2015 10:14:11 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Nov 2015 10:14:11 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 441D12C1F56 for ; Thu, 26 Nov 2015 10:14:11 +0000 (UTC) Date: Thu, 26 Nov 2015 10:14:11 +0000 (UTC) From: =?utf-8?Q?Jakub_Havl=C3=ADk_=28JIRA=29?= To: dev@falcon.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FALCON-1565) Listing API non-intuitive response if time > endTime MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/FALCON-1565?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D150= 28474#comment-15028474 ]=20 Jakub Havl=C3=ADk commented on FALCON-1565: -------------------------------------- I would like to point out that this error also happens when you try to list= instances of a process which is not yet started (same code, different call= path). Process definition: {code:xml} 1 FIFO days(1) UTC {code} Calling process status command before validity start results in the same er= ror: {code} falcon instance -type process -name mg-dev-tr-286 -status ERROR: Bad Request;org.apache.falcon.FalconException: Specified End date 20= 15-11-26T09:56Z is before the entity was scheduled 2015-11-26T10:00Z at org.apache.falcon.resource.AbstractInstanceManager.getStartAndEn= dDate(AbstractInstanceManager.java:509) at org.apache.falcon.resource.AbstractInstanceManager.getStatus(Abs= tractInstanceManager.java:149) at org.apache.falcon.resource.InstanceManager.getStatus(InstanceMan= ager.java:99) at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod= AccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.apache.falcon.resource.channel.IPCChannel.invoke(IPCChannel.= java:49) at org.apache.falcon.resource.proxy.InstanceManagerProxy$3.doExecut= e(InstanceManagerProxy.java:150) at org.apache.falcon.resource.proxy.InstanceManagerProxy$3.doExecut= e(InstanceManagerProxy.java:1) at org.apache.falcon.resource.proxy.InstanceManagerProxy$InstancePr= oxy.execute(InstanceManagerProxy.java:357) at org.apache.falcon.resource.proxy.InstanceManagerProxy.getStatus_= aroundBody4(InstanceManagerProxy.java:154) at org.apache.falcon.resource.proxy.InstanceManagerProxy$AjcClosure= 5.run(InstanceManagerProxy.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.InstanceManagerProxy.getStatus(= InstanceManagerProxy.java:135) at sun.reflect.GeneratedMethodAccessor38.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod= AccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) {code} This is not expected behavior. Expected behavior is receiving info message = saying that there is no instance because we current time is not after start= and before end of validity of this process. > Listing API non-intuitive response if time > endTime > ---------------------------------------------------- > > Key: FALCON-1565 > URL: https://issues.apache.org/jira/browse/FALCON-1565 > Project: Falcon > Issue Type: Bug > Affects Versions: 0.8 > Environment: QA > Reporter: Pragya Mittal > Assignee: Praveen Adlakha > Labels: newbie > Fix For: trunk > > > While listing for an entity with time > endTime, response shows stack tra= ce. Instead error mesage should be shown as response. > Feed definition is : > {noformat} > > > > > > > minutes(2) > > UTC > > > > > > > > > > > > > > > > > > > {noformat} > Listing API response > {noformat} > dataqa@lda01:/mnt/users/pragya/defn/sla$ falcon instance -type feed -name= sla-feed -start 2015-10-30T11:20Z -listing > ERROR: Bad Request;FAILEDua1/org.apache.f= alcon.FalconException::javax.ws.rs.WebApplicationException: javax.xml.bind.= UnmarshalException: unexpected element (uri:"", local:"insta= ncesResult"). Expected elements are <{}feedInstanceResult>,<{= }instance>,<{}result> > {noformat} > Stack trace is : > {noformat} > 2015-10-28 12:15:54,414 ERROR - [1963200284@qtp-2030538903-5 - 0f02eeb7-1= f02-4bea-bbb7-85d5e61b568f:dataqa:GET//instance/listing/feed/sla-feed] ~ Fa= iled to get instances listing (AbstractInstanceManager:528) > org.apache.falcon.FalconException: Specified End date 2015-10-28T12:15Z i= s before the entity was scheduled 2015-10-30T11:20Z > =09at org.apache.falcon.resource.AbstractInstanceManager.getStartAndEndDa= te(AbstractInstanceManager.java:853) > =09at org.apache.falcon.resource.AbstractInstanceManager.getStartAndEndDa= te(AbstractInstanceManager.java:842) > =09at org.apache.falcon.resource.AbstractInstanceManager.getListing(Abstr= actInstanceManager.java:524) > =09at org.apache.falcon.resource.InstanceManager.getListing(InstanceManag= er.java:141) > =09at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > =09at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImp= l.java:62) > =09at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcc= essorImpl.java:43) > =09at java.lang.reflect.Method.invoke(Method.java:497) > =09at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(Java= MethodInvokerFactory.java:60) > =09at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMe= thodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatc= hProvider.java:185) > =09at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethod= Dispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)