[ZEPPELIN-4042]. IPythonClient is not shutdown properly

This commit is contained in:
Jeff Zhang 2019-03-08 11:24:07 +08:00
parent 05fdfe5162
commit 72e1ceb58e

View file

@ -341,6 +341,11 @@ public class IPythonInterpreter extends Interpreter implements ExecuteResultHand
if (watchDog != null) {
LOGGER.info("Kill IPython Process");
ipythonClient.stop(StopRequest.newBuilder().build());
try {
ipythonClient.shutdown();
} catch (InterruptedException e) {
LOGGER.warn("Fail to shutdown IPythonClient");
}
watchDog.destroyProcess();
gatewayServer.shutdown();
}