[ https://issues.apache.org/jira/browse/HIVE-11485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15223827#comment-15223827 ]
Rajat Khandelwal commented on HIVE-11485: ----------------------------------------- hi [~cwsteinbach] I see there are other users struggling with the tight binding between the transport and sessions. Please look at [this|http://stackoverflow.com/questions/35404029/asynchronous-hive-query-execution-operationhandle-gets-cleaned-up-at-server-si/36131073?noredirect=1#comment60226755_36131073]. The issue seems to be introduced in [HIVE-9601|https://github.com/apache/hive/commit/48bea00c48853459af64b4ca9bfdc3e821c4ed82]. Another place where the issue is discussed: https://issues.apache.org/jira/browse/HIVE-4617. I think we should open a jira and fix this coupling. There's a mention that this coupling is only in thrift client, and http client is fine. I'm not sure what approach we should be taking, how about removing this piece of code from deleteContext: {noformat} SessionHandle sessionHandle = context.getSessionHandle(); if (sessionHandle != null) { LOG.info("Session disconnected without closing properly, close it now"); try { cliService.closeSession(sessionHandle); } catch (HiveSQLException e) { LOG.warn("Failed to close session: " + e, e); } } {noformat} > Session close should not close async SQL operations > --------------------------------------------------- > > Key: HIVE-11485 > URL: https://issues.apache.org/jira/browse/HIVE-11485 > Project: Hive > Issue Type: Improvement > Components: HiveServer2 > Reporter: Amareshwari Sriramadasu > Assignee: Deepak Barr > Attachments: HIVE-11485.master.patch > > > Right now, session close on HiveServer closes all operations. But, queries > running are actually available across sessions and they are not tied to a > session (expect the launch - which requires configuration and resources). And > it allows getting the status of the query across sessions. > But session close of the session ( on which operation is launched) closes all > the operations as well. > So, we should avoid closing all operations upon closing a session. -- This message was sent by Atlassian JIRA (v6.3.4#6332)