Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-23789

[Flakey Tests] ERROR [Time-limited test] balancer.HeterogeneousRegionCountCostFunction(199): cannot read rules file located at ' /tmp/hbase-balancer.rules '

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha-1, 2.3.0
    • flakies
    • None

    Description

      We can't find the balancer rules we just read in the HeterogeneousRegionCountCostFunction test in high load conditions

       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
      

      Test then goes on to fail with:

       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)
      

      Instead, have tests write rules to local test dir.

      Attachments

        Issue Links

          Activity

            People

              stack Michael Stack
              stack Michael Stack
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: