This is an automated email from the ASF dual-hosted git repository.

zjffdu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/zeppelin.git


The following commit(s) were added to refs/heads/master by this push:
     new 316f1b2  [Hotfix] Fix compilation error in NotebookServer
316f1b2 is described below

commit 316f1b24c5cbe6bb5d5e8b98d8f1947c5d2edc6f
Author: Jeff Zhang <[email protected]>
AuthorDate: Mon Mar 8 22:17:05 2021 +0800

    [Hotfix] Fix compilation error in NotebookServer
---
 .../src/main/java/org/apache/zeppelin/socket/NotebookServer.java    | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

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 0f2de9c..cfbfc51 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
@@ -315,7 +315,7 @@ public class NotebookServer extends WebSocketServlet
           getNote(conn, context, messagereceived);
           break;
         case RELOAD_NOTE:
-          reloadNote(conn, messagereceived);
+          reloadNote(conn, context, messagereceived);
           break;
         case NEW_NOTE:
           createNote(conn, context, messagereceived);
@@ -835,12 +835,12 @@ public class NotebookServer extends WebSocketServlet
         });
   }
 
-  private void reloadNote(NotebookSocket conn, Message fromMessage) throws 
IOException {
+  private void reloadNote(NotebookSocket conn, ServiceContext context, Message 
fromMessage) throws IOException {
     String noteId = (String) fromMessage.get("id");
     if (noteId == null) {
       return;
     }
-    getNotebookService().getNote(noteId, true, getServiceContext(fromMessage),
+    getNotebookService().getNote(noteId, true, context,
             new WebSocketServiceCallback<Note>(conn) {
               @Override
               public void onSuccess(Note note, ServiceContext context) throws 
IOException {

Reply via email to