hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gaojinchao <gaojinc...@huawei.com>
Subject Re: A question about Master failover
Date Tue, 09 Aug 2011 09:26:54 GMT
Thanks your reply.

I am reading the code about hmaster failover. Process.  It seems a bug.
I will try to make this case and confirm it. 

-----邮件原件-----
发件人: Ted Yu [mailto:yuzhihong@gmail.com] 
发送时间: 2011年8月9日 17:20
收件人: dev@hbase.apache.org
主题: Re: A question about Master failover

Can you show us the log snippet containing the stack trace ?

Thanks



On Aug 9, 2011, at 2:15 AM, Gaojinchao <gaojinchao@huawei.com> wrote:

> 
> In function rebuildUserRegions,  The region that regionLocation is null is put into regions
set. It seems a bug.
> It will throw exception when DisableTableHandler processes it.  Skipping this region
seems better.
> 
> code:
> if (regionLocation == null) {
>        // Region not being served, add to region map with no assignment
>        // If this needs to be assigned out, it will also be in ZK as RIT
>        // add if the table is not in disabled state
>        if (false == checkIfRegionBelongsToDisabled(regionInfo)) {
>          this.regions.put(regionInfo, null);
>        }
>        if (checkIfRegionBelongsToDisabling(regionInfo)) {                 //Should we
skip this region?
>          disablingTables.add(disablingTableName);
>        }
> } else if (!serverManager.isServerOnline(regionLocation.getServerName())) {
Mime
View raw message