Duo Zhang updated HBASE-20144:
         Assignee: Duo Zhang
    Fix Version/s: 2.0.0
           Status: Patch Available  (was: Open)

Call HMaster.stop directly if no online servers in 

Also enable TestAssignmentManagerMetrics to see if it is fine after this fix.

> The shutdown of master will hang if there are no live region server
> -------------------------------------------------------------------
>                 Key: HBASE-20144
>                 URL: https://issues.apache.org/jira/browse/HBASE-20144
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Duo Zhang
>            Assignee: Duo Zhang
>            Priority: Major
>             Fix For: 2.0.0
>         Attachments: HBASE-20144-UT.patch, HBASE-20144.patch
> In a graceful shutdown, we will set cluster down in ServerManager, and in 
> ServerManger.expireServer, if the cluster down flag is true and all rses are 
> gone, we will call master.stop and quit.
> But if we have no live rs when shutting down, then expireServer will never be 
> triggered, so we are dead...

This message was sent by Atlassian JIRA

Reply via email to