[ 
https://issues.apache.org/jira/browse/HBASE-28353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17815990#comment-17815990
 ] 

Istvan Toth commented on HBASE-28353:
-------------------------------------

I played around with this some more:

Ctrl-C does not do anything in HBase shell.
When I send a SIGINT by the "kill" command, at_exit does get called.

So using at_exit does seem to fix all the ways I can think of for exiting hbase 
shell after all.


> Close HBase connection on implicit exit from HBase shell
> --------------------------------------------------------
>
>                 Key: HBASE-28353
>                 URL: https://issues.apache.org/jira/browse/HBASE-28353
>             Project: HBase
>          Issue Type: Bug
>          Components: shell
>            Reporter: Istvan Toth
>            Assignee: Istvan Toth
>            Priority: Major
>
> The fix in HBASE-28345 only works when the exit function is explicitly called.
> It does not work when scripts are piped in in non-interactive mode.
> Hook the connection close into Ruby at_exit instead of the exit shell command.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to