You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "LiangJun He (Jira)" <ji...@apache.org> on 2022/04/16 03:53:00 UTC

[jira] [Commented] (HBASE-26951) HMaster should exit gracefully, when stopped via hbase-daemon.sh

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

LiangJun He commented on HBASE-26951:
-------------------------------------

I found out that this problem was caused by the issue [HBASE-25288|https://issues.apache.org/jira/browse/HBASE-25288]. After this issue, HMaster no longer extend HRegionServer (instead extend HBaseServerBase, this class is the abstract parent class of HRegionServer and HMaster), then the run() method of HMaster does not call the super.run() method, so it is impossible to register ShutdownHook in the run() method of HRegionServer.

> HMaster should exit gracefully, when stopped via hbase-daemon.sh
> ----------------------------------------------------------------
>
>                 Key: HBASE-26951
>                 URL: https://issues.apache.org/jira/browse/HBASE-26951
>             Project: HBase
>          Issue Type: Improvement
>          Components: master
>            Reporter: LiangJun He
>            Assignee: LiangJun He
>            Priority: Major
>             Fix For: 3.0.0-alpha-3
>
>
> Since ShutdownHook is not registered at startup, when HMaster is stopped through hbase-daemon.sh, HMaster cannot exit gracefully,  the threads and services of HMaster cannot be closed normally, and the master local region also cannot be closed normally, which may lead to some inexplicable problems.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)