You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by GitBox <gi...@apache.org> on 2019/08/31 14:52:18 UTC

[GitHub] [zeppelin] liuxunorg commented on a change in pull request #3434: [ZEPPELIN-4281] Fixed unusable after cluster mode restarts interpreter

liuxunorg commented on a change in pull request #3434: [ZEPPELIN-4281] Fixed unusable after cluster mode restarts interpreter
URL: https://github.com/apache/zeppelin/pull/3434#discussion_r319726547
 
 

 ##########
 File path: zeppelin-interpreter/src/main/java/org/apache/zeppelin/interpreter/remote/RemoteInterpreterServer.java
 ##########
 @@ -238,6 +239,9 @@ public void run() {
   @Override
   public void shutdown() throws TException {
     logger.info("Shutting down...");
+    // delete interpreter cluster meta
+    deleteClusterMeta();
 
 Review comment:
   To determine if an interpreter is available, there are two ways to cluster.
   1. The interpreter process exits normally, where the interpreter actively deletes the information in the cluster metadata.
   2. The interpreter exits abnormally. zeppelin-server periodically checks if the interpreter is available. If it is not available, it will be set to offline.
   https://github.com/apache/zeppelin/blob/master/zeppelin-interpreter/src/main/java/org/apache/zeppelin/cluster/ClusterMonitor.java#L165
   

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services