hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-15327) Canary will always invoke admin.balancer() in each sniffing period when writeSniffing is enabled
Date Wed, 30 Mar 2016 16:02:25 GMT

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

Ted Yu updated HBASE-15327:
---------------------------
       Resolution: Fixed
     Hadoop Flags: Reviewed
    Fix Version/s: 1.3.0
           Status: Resolved  (was: Patch Available)

Thanks for the patch, Jianwei.

Thanks for the review, Stack.

> Canary will always invoke admin.balancer() in each sniffing period when writeSniffing
is enabled
> ------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-15327
>                 URL: https://issues.apache.org/jira/browse/HBASE-15327
>             Project: HBase
>          Issue Type: Bug
>          Components: canary
>    Affects Versions: 2.0.0
>            Reporter: Jianwei Cui
>            Assignee: Jianwei Cui
>            Priority: Minor
>             Fix For: 2.0.0, 1.3.0, 1.4.0
>
>         Attachments: HBASE-15327-branch-1-v1.patch, HBASE-15327-trunk.patch, HBASE-15327-trunk.patch,
HBASE-15327-v1.patch
>
>
> When Canary#writeSniffing is enabled, Canary#checkWriteTableDistribution will make sure
the regions of write table distributed on all region servers as:
> {code}
>       int numberOfServers = admin.getClusterStatus().getServers().size();
>       ......
>       int numberOfCoveredServers = serverSet.size();
>       if (numberOfCoveredServers < numberOfServers) {
>         admin.balancer();
>       }
> {code}
> The master will also work as a regionserver, so that ClusterStatus#getServers will contain
the master. On the other hand, write table of Canary will not be assigned to master, making
numberOfCoveredServers always smaller than numberOfServers and admin.balancer always be invoked
in each sniffing period. This may cause frequent region moves. A simple fix is excluding master
from numberOfServers.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message