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 765F918123 for ; Wed, 28 Oct 2015 12:45:30 +0000 (UTC) Received: (qmail 44716 invoked by uid 500); 28 Oct 2015 12:45:30 -0000 Delivered-To: apmail-falcon-dev-archive@falcon.apache.org Received: (qmail 44676 invoked by uid 500); 28 Oct 2015 12:45:30 -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 44665 invoked by uid 99); 28 Oct 2015 12:45:30 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Oct 2015 12:45:30 +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 C476BC8B88 for ; Wed, 28 Oct 2015 12:45:29 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.979 X-Spam-Level: X-Spam-Status: No, score=0.979 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=-0.001] 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 5ZQNYLlWp8Dn for ; Wed, 28 Oct 2015 12:45:28 +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 4EBDF439E9 for ; Wed, 28 Oct 2015 12:45:28 +0000 (UTC) Received: (qmail 44295 invoked by uid 99); 28 Oct 2015 12:45:27 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Oct 2015 12:45:27 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C35D92C1F5D for ; Wed, 28 Oct 2015 12:45:27 +0000 (UTC) Date: Wed, 28 Oct 2015 12:45:27 +0000 (UTC) From: "Pragya Mittal (JIRA)" To: dev@falcon.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (FALCON-1565) Listing API non-intuitive response if time > endTime 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-1565?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Pragya Mittal updated FALCON-1565: ---------------------------------- Description: While listing for an entity with time > endTime, response shows stack trace. 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.falcon.FalconException::javax.ws.rs.WebApplicationException: javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"instancesResult"). Expected elements are <{}feedInstanceResult>,<{}instance>,<{}result> {noformat} Stack trace is : {noformat} 2015-10-28 12:15:54,414 ERROR - [1963200284@qtp-2030538903-5 - 0f02eeb7-1f02-4bea-bbb7-85d5e61b568f:dataqa:GET//instance/listing/feed/sla-feed] ~ Failed to get instances listing (AbstractInstanceManager:528) org.apache.falcon.FalconException: Specified End date 2015-10-28T12:15Z is before the entity was scheduled 2015-10-30T11:20Z at org.apache.falcon.resource.AbstractInstanceManager.getStartAndEndDate(AbstractInstanceManager.java:853) at org.apache.falcon.resource.AbstractInstanceManager.getStartAndEndDate(AbstractInstanceManager.java:842) at org.apache.falcon.resource.AbstractInstanceManager.getListing(AbstractInstanceManager.java:524) at org.apache.falcon.resource.InstanceManager.getListing(InstanceManager.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 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) {noformat} was: While listing for an entity with time > endTime, response shows stack trace. Instead error mesage should be shown as 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.falcon.FalconException::javax.ws.rs.WebApplicationException: javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"instancesResult"). Expected elements are <{}feedInstanceResult>,<{}instance>,<{}result> {noformat} Stack trace is : {noformat} 2015-10-28 12:15:54,414 ERROR - [1963200284@qtp-2030538903-5 - 0f02eeb7-1f02-4bea-bbb7-85d5e61b568f:dataqa:GET//instance/listing/feed/sla-feed] ~ Failed to get instances listing (AbstractInstanceManager:528) org.apache.falcon.FalconException: Specified End date 2015-10-28T12:15Z is before the entity was scheduled 2015-10-30T11:20Z at org.apache.falcon.resource.AbstractInstanceManager.getStartAndEndDate(AbstractInstanceManager.java:853) at org.apache.falcon.resource.AbstractInstanceManager.getStartAndEndDate(AbstractInstanceManager.java:842) at org.apache.falcon.resource.AbstractInstanceManager.getListing(AbstractInstanceManager.java:524) at org.apache.falcon.resource.InstanceManager.getListing(InstanceManager.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 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) {noformat} > 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 > Components: merlin > Affects Versions: 0.8 > Environment: QA > Reporter: Pragya Mittal > Fix For: 0.8 > > > While listing for an entity with time > endTime, response shows stack trace. 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.falcon.FalconException::javax.ws.rs.WebApplicationException: javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"instancesResult"). Expected elements are <{}feedInstanceResult>,<{}instance>,<{}result> > {noformat} > Stack trace is : > {noformat} > 2015-10-28 12:15:54,414 ERROR - [1963200284@qtp-2030538903-5 - 0f02eeb7-1f02-4bea-bbb7-85d5e61b568f:dataqa:GET//instance/listing/feed/sla-feed] ~ Failed to get instances listing (AbstractInstanceManager:528) > org.apache.falcon.FalconException: Specified End date 2015-10-28T12:15Z is before the entity was scheduled 2015-10-30T11:20Z > at org.apache.falcon.resource.AbstractInstanceManager.getStartAndEndDate(AbstractInstanceManager.java:853) > at org.apache.falcon.resource.AbstractInstanceManager.getStartAndEndDate(AbstractInstanceManager.java:842) > at org.apache.falcon.resource.AbstractInstanceManager.getListing(AbstractInstanceManager.java:524) > at org.apache.falcon.resource.InstanceManager.getListing(InstanceManager.java:141) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > 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) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)