[
https://issues.apache.org/jira/browse/HBASE-23789?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Michael Stack resolved HBASE-23789.
-----------------------------------
Fix Version/s: 2.3.0
3.0.0
Assignee: Michael Stack
Resolution: Fixed
Pushed fix on branch-2 and master. Lets see how it does.
> [Flakey Tests] ERROR [Time-limited test]
> balancer.HeterogeneousRegionCountCostFunction(199): cannot read rules file
> located at ' /tmp/hbase-balancer.rules '
> ------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HBASE-23789
> URL: https://issues.apache.org/jira/browse/HBASE-23789
> Project: HBase
> Issue Type: Bug
> Components: flakies
> Reporter: Michael Stack
> Assignee: Michael Stack
> Priority: Major
> Fix For: 3.0.0, 2.3.0
>
>
> We can't find the balancer rules we just read in the
> HeterogeneousRegionCountCostFunction test in high load conditions
> {code}
> 2020-02-03 20:51:00,774 ERROR [Time-limited test]
> balancer.HeterogeneousRegionCountCostFunction(199): cannot read rules file
> located at ' /tmp/hbase-balancer.rules ':File /tmp/hbase-balancer.rules does
> not exist
> 2020-02-03 20:51:00,774 WARN [Time-limited test]
> balancer.HeterogeneousRegionCountCostFunction(155): cannot load rules file,
> keeping latest rules file which has 1 rules
> {code}
> Test then goes on to fail with:
> {code}
> org.apache.hadoop.hbase.master.balancer.TestStochasticLoadBalancerHeterogeneousCost.testOneGroup
> Time elapsed: 15.223 s <<< FAILURE!
> junit.framework.AssertionFailedError: Host rs0 should be below 0.0%
> at
> org.apache.hadoop.hbase.master.balancer.TestStochasticLoadBalancerHeterogeneousCost.testWithCluster(TestStochasticLoadBalancerHeterogeneousCost.java:209)
> at
> org.apache.hadoop.hbase.master.balancer.TestStochasticLoadBalancerHeterogeneousCost.testHeterogeneousWithCluster(TestStochasticLoadBalancerHeterogeneousCost.java:160)
> at
> org.apache.hadoop.hbase.master.balancer.TestStochasticLoadBalancerHeterogeneousCost.testOneGroup(TestStochasticLoadBalancerHeterogeneousCost.java:102)
> {code}
> Instead, have tests write rules to local test dir.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)