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

Nick Dimiduk commented on HBASE-27651:
--------------------------------------

My initial reaction was to change our container configuration to launch 
processes with {{bin/hbase}} instead, but it seems {{bin/hbase-daemon.sh}} has 
additional responsibility pertaining to cleaning up znodes. I this is 
not/cannot be done from {{bin/hbase}} because it uses {{exec}} to launch the 
jvm process.

An alternative approach would be to implement the node cleanup as a shutdown 
handler in the JVM.

> hbase-daemon.sh foreground_start does not propagate SIGHUP or SIGTERM properly
> ------------------------------------------------------------------------------
>
>                 Key: HBASE-27651
>                 URL: https://issues.apache.org/jira/browse/HBASE-27651
>             Project: HBase
>          Issue Type: Bug
>          Components: scripts
>            Reporter: Nick Dimiduk
>            Priority: Minor
>
> Running HBase in a container environment, launched using 
> {{{}bin/hbase-daemon.sh foreground_start ...{}}}. Signaling the container for 
> config refresh or for graceful termination doesn't make it through to the JVM 
> process. Rather, the {{trap}} function is unconditionally sending {{{}kill 
> -9{}}}.



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

Reply via email to