You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@livy.apache.org by GitBox <gi...@apache.org> on 2019/09/27 05:30:55 UTC

[GitHub] [incubator-livy] huianyi commented on a change in pull request #238: [LIVY-689] Deliver stage process message to the end user using thriftserver

huianyi commented on a change in pull request #238: [LIVY-689] Deliver stage process message to the end user using thriftserver
URL: https://github.com/apache/incubator-livy/pull/238#discussion_r328917853
 
 

 ##########
 File path: rsc/src/main/java/org/apache/livy/rsc/driver/RSCDriver.java
 ##########
 @@ -212,6 +215,33 @@ public void onSaslComplete(Rpc client) {
     setupIdleTimeout();
   }
 
+  /**
+   * calculate each stage's process and broadcast message to the end user
+   * @param jobId
+   */
+  void handleProcessMessage(String jobId){
+    SparkStatusTracker sparkStatusTracker;
+    synchronized (jcLock){
+      if (jc == null){
+        return;
+      }
+      sparkStatusTracker = jc.sc().sc().statusTracker();
+    }
+    int[] activeStageIds = sparkStatusTracker.getActiveStageIds();
 
 Review comment:
   We can only submit one job using beeline at a time, so this may not happened?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services