Uploaded image for project: 'Falcon'
  1. Falcon
  2. FALCON-577

Extend time functions added in Falcon 0.6 to support current & last week are giving UnsupportedOperationException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.6
    • 0.6
    • process

    Description

      Time functions added in Falcon to support current & last week are not showing as expected.
      Following is the stack trace for the same :

      2014-08-08 09:28:12,366 ERROR - [2014365503@qtp-1333256886-21:pragyamittal:POST//entities/submit/process e59168cf-f5c0-4edf-8282-8664d181f79b] ~ Request failed: 400 (HTTPChannel:104)
      2014-08-08 09:28:12,389 ERROR - [2014365503@qtp-1333256886-21:pragyamittal:POST//entities/submit/process e59168cf-f5c0-4edf-8282-8664d181f79b] ~ Action failed: Bad Request
      Error: ua1/java.lang.UnsupportedOperationException: Not found :currentWeek
              at org.apache.falcon.expression.ExpressionHelper.resolveFunction(ExpressionHelper.java:78)
              at org.apache.commons.el.FunctionInvocation.evaluate(FunctionInvocation.java:148)
              at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
              at org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:190)
              at org.apache.falcon.expression.ExpressionHelper.evaluateFullExpression(ExpressionHelper.java:65)
              at org.apache.falcon.expression.ExpressionHelper.evaluate(ExpressionHelper.java:59)
              at org.apache.falcon.entity.parser.CrossEntityValidations.validateFeedRetentionPeriod(CrossEntityValidations.java:93)
              at org.apache.falcon.entity.parser.ProcessEntityParser.validate(ProcessEntityParser.java:81)
              at org.apache.falcon.entity.parser.ProcessEntityParser.validate(ProcessEntityParser.java:52)
              at org.apache.falcon.resource.AbstractEntityManager.validate(AbstractEntityManager.java:373)
              at org.apache.falcon.resource.AbstractEntityManager.submitInternal(AbstractEntityManager.java:340)
              at org.apache.falcon.resource.AbstractEntityManager.submit(AbstractEntityManager.java:154)
              at org.apache.falcon.resource.ConfigSyncService.submit(ConfigSyncService.java:44)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
              at java.lang.reflect.Method.invoke(Method.java:622)
              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.ClientCertificateFilter.doFilter(ClientCertificateFilter.java:67)
              at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1212)
              at org.apache.falcon.security.BasicAuthFilter$2.doFilter(BasicAuthFilter.java:184)
              at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:384)
              at org.apache.falcon.security.BasicAuthFilter.doFilter(BasicAuthFilter.java:222)
              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:766)
              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.content(HttpConnection.java:945)
              at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
              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)
      
       (FalconWebException:56)
      2014-08-08 09:28:12,389 INFO  - [2014365503@qtp-1333256886-21:pragyamittal:POST//entities/submit/process e59168cf-f5c0-4edf-8282-8664d181f79b] ~ {Action:submit, Dimensions:{entityType=process, colo=NULL}, Status: FAILED, Time-taken:364217290 ns} (METRIC:33)
      
      

      Attachments

        1. FALCON-577-v2.patch
          4 kB
          Srikanth Sundarrajan
        2. FALCON-577.patch
          3 kB
          Srikanth Sundarrajan

        Activity

          People

            sriksun Srikanth Sundarrajan
            pragya.mittal Pragya Mittal
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: