You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Andrew Kyle Purtell (Jira)" <ji...@apache.org> on 2022/06/17 16:15:00 UTC

[jira] [Resolved] (HBASE-11626) Region will be closed if user try to move it to an error destination server

     [ https://issues.apache.org/jira/browse/HBASE-11626?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Kyle Purtell resolved HBASE-11626.
-----------------------------------------
    Resolution: Incomplete

> Region will be closed if user try to move it to an error destination server
> ---------------------------------------------------------------------------
>
>                 Key: HBASE-11626
>                 URL: https://issues.apache.org/jira/browse/HBASE-11626
>             Project: HBase
>          Issue Type: Improvement
>          Components: master
>    Affects Versions: 0.98.4
>            Reporter: Jianwei Cui
>            Priority: Minor
>
> When moving region to a destination server by hbase shell command, such as:
> {code}
> move '7dbe79eb3a77df085c8546b2ee540e7f', 'localhost,58220,1406806842691'
> {code}
> user could pass an error destination server name, such as misspellinging the server name. Then, HMaster will close the region firstly and then assign the region to a random server when finding the destination server is not online, and the region can not serve before it is online again. Do we need to check the destination server name corresponds to an online server before closing region?(in HMaster.move(...)) 
> {code}
> ...
> if (destServerName == null || destServerName.length == 0) {
>       ....
>     } else {
>       dest = ServerName.valueOf(Bytes.toString(destServerName));
>       if (dest.equals(regionState.getServerName())) {
>          ...
>       }
>       // ### check the destination sever is online before closing region ###
>     }
> ...
> {code}



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