You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Istvan Toth (Jira)" <ji...@apache.org> on 2024/02/09 09:25:00 UTC

[jira] [Commented] (HBASE-28353) Close HBase connection on implicit exit from HBase shell

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

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

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)