[
https://issues.apache.org/jira/browse/HIVE-16961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16066215#comment-16066215
]
Rui Li commented on HIVE-16961:
-------------------------------
Hi [~xuefuz], I'm not sure cancelling the client in finally is correct. It
means we cancel the client even if the child process returns 0. Will it be
sufficient to cancel the client only if something goes wrong?
> Hive on Spark leaks spark application in case user cancels query and closes
> session
> -----------------------------------------------------------------------------------
>
> Key: HIVE-16961
> URL: https://issues.apache.org/jira/browse/HIVE-16961
> Project: Hive
> Issue Type: Bug
> Components: Spark
> Affects Versions: 1.1.0
> Reporter: Xuefu Zhang
> Assignee: Xuefu Zhang
> Attachments: HIVE-16961.patch
>
>
> It's found that a Spark application is leaked when user cancels query and
> closes the session while Hive is waiting for remote driver to connect back.
> This is found for asynchronous query execution, but seemingly equally
> applicable for synchronous submission when session is abruptly closed. The
> leaked Spark application that runs Spark driver connects back to Hive
> successfully and run for ever (until HS2 restarts), but receives no job
> submission because the session is already closed. Ideally, Hive should
> rejects the connection from the driver so the driver will exist.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)