falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pallavi Rao (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (FALCON-1748) Client throws FalconWebException irrespective of type of error
Date Mon, 18 Jan 2016 06:51:39 GMT

    [ https://issues.apache.org/jira/browse/FALCON-1748?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15104860#comment-15104860
] 

Pallavi Rao edited comment on FALCON-1748 at 1/18/16 6:51 AM:
--------------------------------------------------------------

Client side changes can follow. 

However, if users use the REST API, the call should return the same response as before. Why
is the server side response depending on the client re-factor?

Before :
{noformat}
curl --insecure -X POST "https://localhost:15443/api/entities/resume/process/pig-sleep2?colo=*&showScheduler=false&user.name=pallavi.rao"
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><result><status>FAILED</status><message>default/org.apache.falcon.FalconWebException::org.apache.falcon.FalconException:
Scheduled entities can only be suspended.
{noformat}

Now:
{noformat}
curl --insecure -X POST "https://localhost:15443/api/entities/resume/process/pig-sleep2?colo=*&showScheduler=false&user.name=pallavi.rao"
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><result><status>FAILED</status><message>default/org.apache.falcon.FalconWebException::null
</message><requestId>1325124186@qtp-1226020905-0 - 8ff0970d-486d-4eca-be4e-27256535719d</requestId></result>
{noformat}


was (Author: pallavi.rao):
Client side changes can follow. 

However, if users use the REST API, the call should return the same response as before. Why
is the server side response depending on the client re-factor?

Before :
{quote}
curl --insecure -X POST "https://localhost:15443/api/entities/resume/process/pig-sleep2?colo=*&showScheduler=false&user.name=pallavi.rao"
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><result><status>FAILED</status><message>default/org.apache.falcon.FalconWebException::org.apache.falcon.FalconException:
Scheduled entities can only be suspended.
{quote}

Now:
{quote}
curl --insecure -X POST "https://localhost:15443/api/entities/resume/process/pig-sleep2?colo=*&showScheduler=false&user.name=pallavi.rao"
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><result><status>FAILED</status><message>default/org.apache.falcon.FalconWebException::null
</message><requestId>1325124186@qtp-1226020905-0 - 8ff0970d-486d-4eca-be4e-27256535719d</requestId></result>
{quote}

> Client throws FalconWebException irrespective of type of error
> --------------------------------------------------------------
>
>                 Key: FALCON-1748
>                 URL: https://issues.apache.org/jira/browse/FALCON-1748
>             Project: Falcon
>          Issue Type: Bug
>          Components: client
>    Affects Versions: 0.9
>            Reporter: Pragya Mittal
>            Assignee: Praveen Adlakha
>            Priority: Blocker
>
> Since only server side refactoring is done for error handling FALCON-1705, this has become
a blocker for 0.9 release. All the client exceptions now throw the following exception irrespective
of what the error is :
> {noformat}
> ERROR: Bad Request;ua1/org.apache.falcon.FalconWebException::null
> ua2/org.apache.falcon.FalconWebException::null
> {noformat}
> Prism stacktrace is :
> {noformat}
> 2016-01-14 09:38:37,101 INFO  - [45694243@qtp-477289012-44 - 82747686-0d1b-4d20-b0ec-186be5724112:dataqa:POST//entities/schedule/process/processMerlinNative]
~ Configuring client with /mnt/falcon/prism/conf/prism.keystore (SecureHTTPChannel:56)
> 2016-01-14 09:38:37,837 ERROR - [45694243@qtp-477289012-44 - 82747686-0d1b-4d20-b0ec-186be5724112:dataqa:POST//entities/schedule/process/processMerlinNative]
~ Request failed: 400 (HTTPChannel:121)
> 2016-01-14 09:38:37,839 ERROR - [45694243@qtp-477289012-44 - 82747686-0d1b-4d20-b0ec-186be5724112:dataqa:POST//entities/schedule/process/processMerlinNative]
~ Request failed (HTTPChannel:129)
> org.apache.falcon.FalconWebException
> 	at org.apache.falcon.FalconWebException.newAPIException(FalconWebException.java:62)
> 	at org.apache.falcon.FalconWebException.newAPIException(FalconWebException.java:54)
> 	at org.apache.falcon.resource.channel.HTTPChannel.invoke(HTTPChannel.java:122)
> 	at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy$10.doExecute(SchedulableEntityManagerProxy.java:504)
> 	at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy$EntityProxy.execute(SchedulableEntityManagerProxy.java:773)
> 	at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy.schedule_aroundBody14(SchedulableEntityManagerProxy.java:507)
> 	at org.apache.falcon.resource.proxy.SchedulableEntityManagerProxy$AjcClosure15.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.schedule(SchedulableEntityManagerProxy.java:488)
> 	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)
> 	at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288)
> 	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
> 	at com.sun.jersey.server.impl.uri.rules.ResourceClassRule.accept(ResourceClassRule.java:108)
> 	at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147)
> 	at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84)
> 	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1469)
> 	at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1400)
> 	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1349)
> 	at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1339)
> 	at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416)
> 	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:537)
> 	at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:699)
> 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> 	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
> 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1221)
> 	at org.apache.falcon.security.FalconAuthorizationFilter.doFilter(FalconAuthorizationFilter.java:108)
> 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
> 	at org.apache.falcon.security.FalconAuthenticationFilter$2.doFilter(FalconAuthenticationFilter.java:188)
> 	at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:572)
> 	at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:542)
> 	at org.apache.falcon.security.FalconAuthenticationFilter.doFilter(FalconAuthenticationFilter.java:197)
> 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
> 	at org.apache.falcon.security.FalconAuditFilter.doFilter(FalconAuditFilter.java:64)
> 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
> 	at org.apache.falcon.security.HostnameFilter.doFilter(HostnameFilter.java:82)
> 	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
> 	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:399)
> 	at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
> 	at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
> 	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:767)
> 	at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:450)
> 	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
> 	at org.mortbay.jetty.Server.handle(Server.java:326)
> 	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
> 	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:928)
> 	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:549)
> 	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
> 	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
> 	at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
> 	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message