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


With regards,
Apache Git Services

Reply via email to