zjffdu commented on a change in pull request #3523: [ZEPPELIN-4326][spark]Spark 
Interpreter restart failed when no suffic…
URL: https://github.com/apache/zeppelin/pull/3523#discussion_r347782568
 
 

 ##########
 File path: 
spark/interpreter/src/main/java/org/apache/zeppelin/spark/SparkSqlInterpreter.java
 ##########
 @@ -156,7 +157,11 @@ public FormType getFormType() {
   @Override
   public int getProgress(InterpreterContext context) throws 
InterpreterException {
     SparkInterpreter sparkInterpreter = getSparkInterpreter();
-    return sparkInterpreter.getProgress(context);
+    if (sparkInterpreter.getSparkContext() == null) {
+      return 0;
+    }else {
 
 Review comment:
   nit.  Add space after `}`

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to