hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "huaxiang sun (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-14644) Region in transition metric is broken
Date Sat, 04 Jun 2016 03:41:59 GMT

    [ https://issues.apache.org/jira/browse/HBASE-14644?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15315296#comment-15315296

huaxiang sun commented on HBASE-14644:

I am debugging the same issue and know the root cause now. I am working on a patch.
[~eclark], is it ok with you? Thanks

Explain a little bit here:
in HMaster.java,
  protected void waitForMasterActive(){
    boolean tablesOnMaster = BaseLoadBalancer.tablesOnMaster(conf);
    while (!(tablesOnMaster && isActiveMaster)
        && !isStopped() && !isAborted()) {
In branch-1, tablesOnMaster is false by default, so it blockes here. doMetrics() is never
In master, tablesOnMaster is true by default so it works by default.

My plan is to have a scheduleDoMetricsChore() in HRegionServer and let HMaster to override
it, so HMaster can scedule a chore to call doMetrics() periodically. 

Please let me know if this is ok. Credit goes to [~mbertozzi] as well, I posted comments after
discussion with him, thanks.

> Region in transition metric is broken
> -------------------------------------
>                 Key: HBASE-14644
>                 URL: https://issues.apache.org/jira/browse/HBASE-14644
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Elliott Clark
>            Assignee: huaxiang sun
> ritCount stays 0 no matter what

This message was sent by Atlassian JIRA

View raw message