Chaoyu Tang updated HIVE-14774:
    Attachment: HIVE-14774.patch

Kill the process running query in the background before close/destroy the 
Driver instance. Otherwise, under certain race condition, the running process 
might still access some driver fields (e.g. plan, ctx) which have been 
nullified in the cleanup process and cause some uncaught runtime errors. Some 
resources such as locks might also not be cleared properly.

> Canceling query using Ctrl-C in beeline might lead to stale locks
> -----------------------------------------------------------------
>                 Key: HIVE-14774
>                 URL: https://issues.apache.org/jira/browse/HIVE-14774
>             Project: Hive
>          Issue Type: Bug
>          Components: Locking
>            Reporter: Chaoyu Tang
>            Assignee: Chaoyu Tang
>         Attachments: HIVE-14774.patch
> Terminating a running query using Ctrl-C in Beeline might lead to stale locks 
> since the process running the query might still be able to acquire the locks 
> but fail to release them after the query terminate abnormally.

This message was sent by Atlassian JIRA

Reply via email to