You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "xufeng (Updated) (JIRA)" <ji...@apache.org> on 2012/04/10 04:53:17 UTC

[jira] [Updated] (HBASE-5677) The master never does balance because duplicate openhandled the one region

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

xufeng updated HBASE-5677:
--------------------------

    Attachment: surefire-report_patched_v1.html
                surefire-report_no_patched_v1.html
                HBASE-5677-90-v1.patch

@Ted
At first,I try to change the isMasterRunning like this:
  public boolean isMasterRunning() {
    return !isStopped() && isInitialized();
  }
But Some class like HMerge,this tool just care the master is running or not.

So I think it is necessary to create a new method in HMasterInterface.

I create a 90 patch,pls review this and give me some suggestions,thanks.

I tested it by reproduce steps, shell can not work until the master completed the initialization.
And I also do the unit test,it seems ok.
                
> The master never does balance because duplicate openhandled the one region
> --------------------------------------------------------------------------
>
>                 Key: HBASE-5677
>                 URL: https://issues.apache.org/jira/browse/HBASE-5677
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.90.6
>         Environment: 0.90
>            Reporter: xufeng
>            Assignee: xufeng
>         Attachments: HBASE-5677-90-v1.patch, surefire-report_no_patched_v1.html, surefire-report_patched_v1.html
>
>
> If region be assigned When the master is doing initialization(before do processFailover),the region will be duplicate openhandled.
> because the unassigned node in zookeeper will be handled again in AssignmentManager#processFailover()
> it cause the region in RIT,thus the master never does balance.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira