Uploaded image for project: 'Oozie'
  1. Oozie
  2. OOZIE-1568

TestWorkflowClient.testSla is flakey

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: trunk
    • Fix Version/s: 4.1.0
    • Component/s: tests
    • Labels:
      None

      Description

      TestWorkflowClient.testSla seems to be flakey. It frequently fails on the test-patch build because of an NPE:

      23:07:58,636 ERROR SLAServlet:536 - USER[-] GROUP[-] TOKEN[-] APP[-] JOB[-] ACTION[-] Runtime error 
      java.lang.NullPointerException: Name is null
      	at java.lang.Enum.valueOf(Enum.java:195)
      	at org.apache.oozie.client.SLAEvent$Status.valueOf(SLAEvent.java:33)
      	at org.apache.oozie.SLAEventBean.getJobStatus(SLAEventBean.java:84)
      	at org.apache.oozie.SLAEventBean.toXml(SLAEventBean.java:184)
      	at org.apache.oozie.servlet.SLAServlet.doGet(SLAServlet.java:104)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      	at org.apache.oozie.servlet.JsonRestServlet.service(JsonRestServlet.java:286)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1124)
      	at org.apache.oozie.servlet.AuthFilter$2.doFilter(AuthFilter.java:126)
      	at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:372)
      	at org.apache.oozie.servlet.AuthFilter.doFilter(AuthFilter.java:131)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)
      	at org.apache.oozie.servlet.HostnameFilter.doFilter(HostnameFilter.java:84)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)
      	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361)
      	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
      	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      	at org.mortbay.jetty.Server.handle(Server.java:324)
      	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
      	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
      	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533)
      	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207)
      	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
      	at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
      	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
      23:07:58,637  WARN SLAServlet:542 - USER[-] GROUP[-] TOKEN[-] APP[-] JOB[-] ACTION[-] URL[GET http://asf004.sp2.ygridcore.net:44460/oozie/v1/sla?gt-sequence-id=0&max-events=10] error[E0307], E0307: Runtime error [Name is null]
      org.apache.oozie.servlet.XServletException: E0307: Runtime error [Name is null]
      	at org.apache.oozie.servlet.SLAServlet.doGet(SLAServlet.java:130)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      	at org.apache.oozie.servlet.JsonRestServlet.service(JsonRestServlet.java:286)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      	at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1124)
      	at org.apache.oozie.servlet.AuthFilter$2.doFilter(AuthFilter.java:126)
      	at org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:372)
      	at org.apache.oozie.servlet.AuthFilter.doFilter(AuthFilter.java:131)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)
      	at org.apache.oozie.servlet.HostnameFilter.doFilter(HostnameFilter.java:84)
      	at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)
      	at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361)
      	at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
      	at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
      	at org.mortbay.jetty.Server.handle(Server.java:324)
      	at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
      	at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
      	at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:533)
      	at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:207)
      	at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)
      	at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)
      	at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)
      23:07:58,739  INFO Services:539 - Shutdown
      

      https://builds.apache.org/job/oozie-trunk-precommit-build/827/testReport/org.apache.oozie.client/TestWorkflowClient/testSla/

        Attachments

        1. OOZIE-1568.patch
          0.7 kB
          Robert Kanter

          Activity

            People

            • Assignee:
              rkanter Robert Kanter
              Reporter:
              rkanter Robert Kanter
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: