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

[jira] [Commented] (HBASE-26977) HMaster's ShutdownHook does not take effect, if tablesOnMaster is false

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

Duo Zhang commented on HBASE-26977:
-----------------------------------

emmm....

> HMaster's ShutdownHook does not take effect, if tablesOnMaster is false
> -----------------------------------------------------------------------
>
>                 Key: HBASE-26977
>                 URL: https://issues.apache.org/jira/browse/HBASE-26977
>             Project: HBase
>          Issue Type: Bug
>          Components: master
>            Reporter: LiangJun He
>            Assignee: LiangJun He
>            Priority: Major
>         Attachments: image-2022-04-26-21-12-51-843.png
>
>
> Because we are going to upgrade the HBase kernel version, during the test, I found that the HMaster ShutdownHook of version 1.7.1 and 2.4.9 did not take effect if tablesOnMaster is false. After further confirmation, I found that all versions of HBase 1.x and 2.x have this problem.
> I analyzed the cause of the problem:
> Before HBase 3.x, HMaster registered ShutdownHook by calling the run() method of HRegionServer, but the run() method will be blocked on the waitForMasterActive() method of HMaster(before registering the shutdownhook) if tablesOnMaster is false. Eventually, the ShutdownHook of HMaster was not registered successfully.
> !image-2022-04-26-21-12-51-843.png!
>  
>  
> 11



--
This message was sent by Atlassian Jira
(v8.20.7#820007)