Sqoop
  1. Sqoop
  2. SQOOP-880

Sqoop2: NPE when stopping job that was never executed

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.99.1
    • Fix Version/s: 1.99.2
    • Component/s: None
    • Labels:
      None

      Description

      When stopping job that was never executed we got NPE:

      sqoop:000> submission stop --jid 3               
      Exception has occurred during processing command 
      Server has returned exception: Exception: java.lang.NullPointerException Message: 
      Stack trace:
               at  org.apache.sqoop.framework.FrameworkManager (FrameworkManager.java:528)  
               at  org.apache.sqoop.handler.SubmissionRequestHandler (SubmissionRequestHandler.java:107)  
               at  org.apache.sqoop.handler.SubmissionRequestHandler (SubmissionRequestHandler.java:100)  
               at  org.apache.sqoop.handler.SubmissionRequestHandler (SubmissionRequestHandler.java:68)  
               at  org.apache.sqoop.server.v1.SubmissionServlet (SubmissionServlet.java:49)  
               at  org.apache.sqoop.server.SqoopProtocolServlet (SqoopProtocolServlet.java:95)  
               at  javax.servlet.http.HttpServlet (HttpServlet.java:643)  
               at  javax.servlet.http.HttpServlet (HttpServlet.java:717)  
               at  org.apache.catalina.core.ApplicationFilterChain (ApplicationFilterChain.java:290)  
               at  org.apache.catalina.core.ApplicationFilterChain (ApplicationFilterChain.java:206)  
               at  org.apache.catalina.core.StandardWrapperValve (StandardWrapperValve.java:233)  
               at  org.apache.catalina.core.StandardContextValve (StandardContextValve.java:191)  
               at  org.apache.catalina.core.StandardHostValve (StandardHostValve.java:127)  
               at  org.apache.catalina.valves.ErrorReportValve (ErrorReportValve.java:102)  
               at  org.apache.catalina.core.StandardEngineValve (StandardEngineValve.java:109)  
               at  org.apache.catalina.connector.CoyoteAdapter (CoyoteAdapter.java:293)  
               at  org.apache.coyote.http11.Http11Processor (Http11Processor.java:859)  
               at  org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler (Http11Protocol.java:602)  
               at  org.apache.tomcat.util.net.JIoEndpoint$Worker (JIoEndpoint.java:489)  
               at  java.lang.Thread (Thread.java:662)  
      sqoop:000>
      
      1. bugSQOOP-880.patch
        0.8 kB
        Jarek Jarcec Cecho
      2. bugSQOOP-880.patch
        0.8 kB
        Jarek Jarcec Cecho

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Patch Available Patch Available
          1m 24s 1 Jarek Jarcec Cecho 09/Feb/13 06:26
          Patch Available Patch Available Resolved Resolved
          1d 15h 5m 1 Cheolsoo Park 10/Feb/13 21:32
          Hide
          Hudson added a comment -

          Integrated in Sqoop2-hadoop200 #187 (See https://builds.apache.org/job/Sqoop2-hadoop200/187/)
          SQOOP-880: NPE when stopping job that was never executed (Revision 217cf297b1f6b10f3d0417ede50282842a672e85)

          Result = SUCCESS
          cheolsoo : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=217cf297b1f6b10f3d0417ede50282842a672e85
          Files :

          • core/src/main/java/org/apache/sqoop/framework/FrameworkManager.java
          Show
          Hudson added a comment - Integrated in Sqoop2-hadoop200 #187 (See https://builds.apache.org/job/Sqoop2-hadoop200/187/ ) SQOOP-880 : NPE when stopping job that was never executed (Revision 217cf297b1f6b10f3d0417ede50282842a672e85) Result = SUCCESS cheolsoo : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=217cf297b1f6b10f3d0417ede50282842a672e85 Files : core/src/main/java/org/apache/sqoop/framework/FrameworkManager.java
          Hide
          Hudson added a comment -

          Integrated in Sqoop2-hadoop100 #174 (See https://builds.apache.org/job/Sqoop2-hadoop100/174/)
          SQOOP-880: NPE when stopping job that was never executed (Revision 217cf297b1f6b10f3d0417ede50282842a672e85)

          Result = SUCCESS
          cheolsoo : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=217cf297b1f6b10f3d0417ede50282842a672e85
          Files :

          • core/src/main/java/org/apache/sqoop/framework/FrameworkManager.java
          Show
          Hudson added a comment - Integrated in Sqoop2-hadoop100 #174 (See https://builds.apache.org/job/Sqoop2-hadoop100/174/ ) SQOOP-880 : NPE when stopping job that was never executed (Revision 217cf297b1f6b10f3d0417ede50282842a672e85) Result = SUCCESS cheolsoo : https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=217cf297b1f6b10f3d0417ede50282842a672e85 Files : core/src/main/java/org/apache/sqoop/framework/FrameworkManager.java
          Cheolsoo Park made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Hide
          Cheolsoo Park added a comment -

          Committed to sqoop2.

          Show
          Cheolsoo Park added a comment - Committed to sqoop2.
          Hide
          Cheolsoo Park added a comment -

          +1. New patch looks fine to me.

          Show
          Cheolsoo Park added a comment - +1. New patch looks fine to me.
          Jarek Jarcec Cecho made changes -
          Attachment bugSQOOP-880.patch [ 12568770 ]
          Jarek Jarcec Cecho made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Jarek Jarcec Cecho made changes -
          Attachment bugSQOOP-880.patch [ 12568692 ]
          Jarek Jarcec Cecho made changes -
          Field Original Value New Value
          Remote Link This issue links to "Review board (Web Link)" [ 12015 ]
          Jarek Jarcec Cecho created issue -

            People

            • Assignee:
              Jarek Jarcec Cecho
              Reporter:
              Jarek Jarcec Cecho
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development