Browse Source

[spark] Don't actually do the interruption

Erick Tryzelaar 11 năm trước cách đây
mục cha
commit
f28277d

+ 6 - 2
apps/spark/java/sparker-server/src/main/java/com/cloudera/hue/sparker/server/resources/SessionResource.java

@@ -123,8 +123,12 @@ public class SessionResource {
     @Path("/{id}/interrupt")
     @POST
     @Timed
-    public Response interruptStatement(@PathParam("id") String id) throws SessionManager.SessionNotFound, Session.StatementNotFound {
+    public Response interruptStatement(@PathParam("id") String id) throws SessionManager.SessionNotFound, Session.StatementNotFound, Exception, ClosedSessionException {
         Session session = sessionManager.get(id);
-        session.interrupt();
+
+        // FIXME: don't actually do anything for now as it doesn't work yet.
+        //  session.interrupt();
+
+        return Response.ok().build();
     }
 }