Repository: zeppelin
Updated Branches:
  refs/heads/master 2afcb944e -> c904e56a8


ZEPPELIN-3286. Run All Paragraphs stops if there is a disabled paragraph mid-run

### What is this PR for?
Trivial fix that just skip the disable paragraph when run all paragraphs.

### What type of PR is it?
[Bug Fix]

### Todos
* [ ] - Task

### What is the Jira issue?
* https://issues.apache.org/jira/browse/ZEPPELIN-3286

### How should this be tested?
* Manually tested

### Screenshots (if appropriate)

### Questions:
* Does the licenses files need update? No
* Is there breaking changes for older versions? No
* Does this needs documentation? No

Author: Jeff Zhang <zjf...@apache.org>

Closes #2833 from zjffdu/ZEPPELIN-3286 and squashes the following commits:

924d1fc [Jeff Zhang] ZEPPELIN-3286. Run All Paragraphs stops if there is a 
disabled paragraph mid-run


Project: http://git-wip-us.apache.org/repos/asf/zeppelin/repo
Commit: http://git-wip-us.apache.org/repos/asf/zeppelin/commit/c904e56a
Tree: http://git-wip-us.apache.org/repos/asf/zeppelin/tree/c904e56a
Diff: http://git-wip-us.apache.org/repos/asf/zeppelin/diff/c904e56a

Branch: refs/heads/master
Commit: c904e56a8cfd2f848ccf9612c99edf4a1037a128
Parents: 2afcb94
Author: Jeff Zhang <zjf...@apache.org>
Authored: Sun Mar 4 13:11:50 2018 +0800
Committer: Jeff Zhang <zjf...@apache.org>
Committed: Wed Mar 7 18:37:56 2018 +0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/zeppelin/socket/NotebookServer.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/zeppelin/blob/c904e56a/zeppelin-server/src/main/java/org/apache/zeppelin/socket/NotebookServer.java
----------------------------------------------------------------------
diff --git 
a/zeppelin-server/src/main/java/org/apache/zeppelin/socket/NotebookServer.java 
b/zeppelin-server/src/main/java/org/apache/zeppelin/socket/NotebookServer.java
index d14a852..0888874 100644
--- 
a/zeppelin-server/src/main/java/org/apache/zeppelin/socket/NotebookServer.java
+++ 
b/zeppelin-server/src/main/java/org/apache/zeppelin/socket/NotebookServer.java
@@ -1723,7 +1723,7 @@ public class NotebookServer extends WebSocketServlet
       Paragraph p = setParagraphUsingMessage(note, fromMessage,
           paragraphId, text, title, params, config);
 
-      if (!persistAndExecuteSingleParagraph(conn, note, p, true)) {
+      if (p.isEnabled() && !persistAndExecuteSingleParagraph(conn, note, p, 
true)) {
         // stop execution when one paragraph fails.
         break;
       }

Reply via email to