You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@zeppelin.apache.org by zj...@apache.org on 2021/06/15 16:00:20 UTC

[zeppelin] branch branch-0.9 updated: [ZEPPELIN-5343] Zeppelin Interface becomes unresponsive

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

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


The following commit(s) were added to refs/heads/branch-0.9 by this push:
     new 52fd16c  [ZEPPELIN-5343] Zeppelin Interface becomes unresponsive
52fd16c is described below

commit 52fd16ce05c0337b93a59b9c92609bbe54ac39a3
Author: Jeff Zhang <zj...@apache.org>
AuthorDate: Tue May 11 10:28:23 2021 +0800

    [ZEPPELIN-5343] Zeppelin Interface becomes unresponsive
    
    ### What is this PR for?
    
    This is experimental PR for fixing the zeppelin unresponsive issue. Regarding the jstack, it seems blocked in `NotebookSocket#send` method, this PR change it from sync call to async call.
    
    ### What type of PR is it?
    [Bug Fix ]
    
    ### Todos
    * [ ] - Task
    
    ### What is the Jira issue?
    * https://issues.apache.org/jira/browse/ZEPPELIN-5343
    
    ### How should this be tested?
    * CI
    
    ### 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 <zj...@apache.org>
    
    Closes #4113 from zjffdu/ZEPPELIN-5343 and squashes the following commits:
    
    8a155af67 [Jeff Zhang] [ZEPPELIN-5343] Zepplin Interface becomes unresponsive
    
    (cherry picked from commit 37b072a83e3444a7d6aecc2d253749e832e24ad7)
    Signed-off-by: Jeff Zhang <zj...@apache.org>
---
 .../src/main/java/org/apache/zeppelin/socket/NotebookSocket.java        | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/zeppelin-server/src/main/java/org/apache/zeppelin/socket/NotebookSocket.java b/zeppelin-server/src/main/java/org/apache/zeppelin/socket/NotebookSocket.java
index d69be98..613a7c9 100644
--- a/zeppelin-server/src/main/java/org/apache/zeppelin/socket/NotebookSocket.java
+++ b/zeppelin-server/src/main/java/org/apache/zeppelin/socket/NotebookSocket.java
@@ -67,7 +67,7 @@ public class NotebookSocket extends WebSocketAdapter {
   }
 
   public synchronized void send(String serializeMessage) throws IOException {
-    connection.getRemote().sendString(serializeMessage);
+    connection.getRemote().sendStringByFuture(serializeMessage);
   }
 
   public String getUser() {