You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Michael Stack (Jira)" <ji...@apache.org> on 2020/02/04 20:35:00 UTC
[jira] [Commented] (HBASE-23789) [Flakey Tests] ERROR [Time-limited
test] balancer.HeterogeneousRegionCountCostFunction(199): cannot read rules
file located at ' /tmp/hbase-balancer.rules '
[ https://issues.apache.org/jira/browse/HBASE-23789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17030110#comment-17030110 ]
Michael Stack commented on HBASE-23789:
---------------------------------------
Redid the persistence of the balancer plan so it used the test data dir rather than tmp to avoid clashes in test runs.
> [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
> Priority: Major
>
> 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)