You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Chaoyu Tang (JIRA)" <ji...@apache.org> on 2016/09/20 16:15:21 UTC

[jira] [Created] (HIVE-14799) Query operation are not thread safe during its cancellation

Chaoyu Tang created HIVE-14799:
----------------------------------

             Summary: Query operation are not thread safe during its cancellation
                 Key: HIVE-14799
                 URL: https://issues.apache.org/jira/browse/HIVE-14799
             Project: Hive
          Issue Type: Bug
          Components: HiveServer2
            Reporter: Chaoyu Tang
            Assignee: Chaoyu Tang


When a query is cancelled either via Beeline (Ctrl-C) or API call TCLIService.Client.CancelOperation, SQLOperation.cancel is invoked in a different thread from that running the query to close/destroy its encapsulated Driver object. Both SQLOperation and Driver are not thread-safe which could sometimes result in Runtime exceptions like NPE. The errors from the running query are not handled properly therefore probably causing some stuffs (files, locks etc) not being cleaned after the query termination.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)