[
https://issues.apache.org/jira/browse/HIVE-15858?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15862561#comment-15862561
]
Thejas M Nair commented on HIVE-15858:
--------------------------------------
[~sankarh]
Added a comment in github pull request.
Can you also add a unit test case for this ? Doing it for shutdown hook might
not be feasible, so maybe create a separate runnable object in Beeline which
shutdownhook would invoke, and also that can be accessed from test case. Add a
mocked connetion object to Beeline.connections and verify that when this
runnable is invoked there are no more connections ? (or something else you can
think of)
> Beeline ^C doesn't close the session
> ------------------------------------
>
> Key: HIVE-15858
> URL: https://issues.apache.org/jira/browse/HIVE-15858
> Project: Hive
> Issue Type: Bug
> Components: Beeline
> Reporter: Sankar Hariappan
> Assignee: Sankar Hariappan
> Attachments: HIVE-15858.01.patch
>
>
> When open multiple connections through Beeline to Hiveserver2 and if tries to
> close the client using !quit or ^C command, it looks like all the
> connections/sessions are not getting closed.
> !quit seems to close the current active connection but fails to close other
> open sessions.
> ^C doesn't close any session.
> This behaviour is noticed only with the HTTP mode of transport
> (hive.server2.transport.mode=http). In case of BINARY mode, server triggers
> the close session when a tcp connection is closed by peer.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)