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

Istvan Toth edited comment on HBASE-28353 at 2/9/24 9:27 AM:
-------------------------------------------------------------

at_exit works for non-interactive scripts, and ctrl-D, but it still hangs on 
Ctrl-C / SIGINT.

Maybe we could fix that by registering a JVM shutdown hook from from 
ReadOnlyZKClient, but it would probably better to fix the SIGINT case in ZK.



was (Author: stoty):
at_exit works for non-interactive scripts, and ctrl-D, but it still hangs on 
Ctrl-C / SIGINT.

Maybe we could fix that by registering a JVM shutdown hook from from 
ReadOnylZKClient, but it would probably better to fix this that ZK.


> 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