[
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,
{code}
protected void waitForMasterActive(){
boolean tablesOnMaster = BaseLoadBalancer.tablesOnMaster(conf);
while (!(tablesOnMaster && isActiveMaster)
&& !isStopped() && !isAborted()) {
sleeper.sleep();
}
}
{code}
In branch-1, tablesOnMaster is false by default, so it blockes here.
doMetrics() is never called.
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
(v6.3.4#6332)