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

Anoop Sam John updated HBASE-24102:
-----------------------------------
    Description: 
When using RegionMover tool to unload the regions from a given RS, it decides 
the list of destination RSs by 
{code}
List<ServerName> regionServers = new ArrayList<>();
        regionServers.addAll(admin.getRegionServers());
        // Remove the host Region server from target Region Servers list
        ServerName server = stripServer(regionServers, hostname, port);
        .....
        // Remove RS present in the exclude file
        stripExcludes(regionServers);
        stripMaster(regionServers);
{code}
Ya it is removing the RSs mentioned in the exclude file.  
Better when the RegionMover user is NOT mentioning any exclude list, we can 
exclude the draining/decommissioning RSs
Admin#listDecommissionedRegionServers()

  was:
When using RegionMover tool to unload the regions from a given RS, it decides 
the list of destination RSs by 
{code}
List<ServerName> regionServers = new ArrayList<>();
        regionServers.addAll(admin.getRegionServers());
        // Remove the host Region server from target Region Servers list
        ServerName server = stripServer(regionServers, hostname, port);
        .....
        // Remove RS present in the exclude file
        stripExcludes(regionServers);
        stripMaster(regionServers);
{code}
Ya it is removing the RSs mentioned in the exclude file.  
Better when the RegionMover user is mentioning any exclude list, we can exlcude 
the draining/decommissioning RSs
Admin#listDecommissionedRegionServers()


> RegionMover should exclude draining/decommissioning nodes from target RSs
> -------------------------------------------------------------------------
>
>                 Key: HBASE-24102
>                 URL: https://issues.apache.org/jira/browse/HBASE-24102
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Anoop Sam John
>            Priority: Major
>             Fix For: 3.0.0, 2.4.0
>
>
> When using RegionMover tool to unload the regions from a given RS, it decides 
> the list of destination RSs by 
> {code}
> List<ServerName> regionServers = new ArrayList<>();
>         regionServers.addAll(admin.getRegionServers());
>         // Remove the host Region server from target Region Servers list
>         ServerName server = stripServer(regionServers, hostname, port);
>         .....
>         // Remove RS present in the exclude file
>         stripExcludes(regionServers);
>         stripMaster(regionServers);
> {code}
> Ya it is removing the RSs mentioned in the exclude file.  
> Better when the RegionMover user is NOT mentioning any exclude list, we can 
> exclude the draining/decommissioning RSs
> Admin#listDecommissionedRegionServers()



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to