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/09/17 02:58:40 UTC
[GitHub] [zeppelin] felixcheung commented on a change in pull request #3445:
[ZEPPELIN-4263] Fixed cluster docker mode cannot exit the container of the
remote interpreter
felixcheung commented on a change in pull request #3445: [ZEPPELIN-4263] Fixed cluster docker mode cannot exit the container of the remote interpreter
URL: https://github.com/apache/zeppelin/pull/3445#discussion_r324962167
##########
File path: zeppelin-plugins/launcher/docker/src/main/java/org/apache/zeppelin/interpreter/launcher/DockerInterpreterProcess.java
##########
@@ -340,16 +353,28 @@ public Void call(RemoteInterpreterService.Client client) throws Exception {
// Remove container
docker.removeContainer(containerName);
- } catch (DockerException e) {
- e.printStackTrace();
- } catch (InterruptedException e) {
- e.printStackTrace();
+ } catch (DockerException | InterruptedException e) {
+ LOGGER.error(e.getMessage(), e);
}
// Close the docker client
docker.close();
}
+ private void removeExistContainer(String containerName) {
+ try {
+ docker.killContainer(containerName);
+ } catch (DockerException | InterruptedException e) {
+ LOGGER.error(e.getMessage(), e);
Review comment:
should not `error` if docker doesn't exist?
----------------------------------------------------------------
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