alexott commented on a change in pull request #3672: [ZEPPELIN-4661]. Fail to 
run whole note
URL: https://github.com/apache/zeppelin/pull/3672#discussion_r386113781
 
 

 ##########
 File path: 
zeppelin-server/src/main/java/org/apache/zeppelin/service/NotebookService.java
 ##########
 @@ -376,25 +375,33 @@ public boolean runAllParagraphs(String noteId,
       return false;
     }
 
-    if (paragraphs == null) {
-      paragraphs = gson.fromJson(gson.toJson(note.getParagraphs()), new 
TypeToken<List>(){}.getType());
-    }
-
     note.setRunning(true);
     try {
-      for (Map<String, Object> raw : paragraphs) {
-        String paragraphId = (String) raw.get("id");
-        if (paragraphId == null) {
-          continue;
+      if (paragraphs != null) {
+        // run note via the data passed from frontend
+        for (Map<String, Object> raw : paragraphs) {
+          String paragraphId = (String) raw.get("id");
+          if (paragraphId == null) {
 
 Review comment:
   maybe add a debug message here? 

----------------------------------------------------------------
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