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

BaseLoadBalancer throws ArrayIndexOutOfBoundsException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.1
    • Fix Version/s: None
    • Component/s: Balancer
    • Labels:

      Description

      I see the below in a test cluster. The balancer code has been in place a long time. Not sure why its doing the below. Will look later. Meantime, making a record of it.

      2018-07-24 22:03:43,261 INFO  [master/ve0524:16000.Chore.1] balancer.StochasticLoadBalancer: start StochasticLoadBalancer.balancer, initCost=280.47655219381977, functionCost=RegionCountSkewCostFunction : (500.0, 0.4992354740061162); PrimaryRegionCountSkewCostFunction : (500.0, 0.0); MoveCostFunction : (7.0, 0.0); ServerLocalityCostFunction : (25.0, 0.5961002123692674); RackLocalityCostFunction : (15.0, 0.0); TableSkewCostFunction : (35.0, 0.3660578386605784); RegionReplicaHostCostFunction : (100000.0, 0.0); RegionReplicaRackCostFunction : (10000.0, 0.0); ReadRequestCostFunction : (5.0, 0.0); WriteRequestCostFunction : (5.0, 0.0); MemStoreSizeCostFunction : (5.0, 0.0); StoreFileCostFunction : (5.0, 0.6288571056819432);
      2018-07-24 22:03:43,322 ERROR [master/ve0524:16000.Chore.1] hbase.ScheduledChore: Caught error
      java.lang.ArrayIndexOutOfBoundsException: 64
              at org.apache.hadoop.hbase.master.balancer.BaseLoadBalancer$Cluster.removeRegion(BaseLoadBalancer.java:872)
              at org.apache.hadoop.hbase.master.balancer.BaseLoadBalancer$Cluster.regionMoved(BaseLoadBalancer.java:827)
              at org.apache.hadoop.hbase.master.balancer.BaseLoadBalancer$Cluster.doAction(BaseLoadBalancer.java:723)
              at org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer.balanceCluster(StochasticLoadBalancer.java:399)
              at org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer.balanceCluster(StochasticLoadBalancer.java:318)
              at org.apache.hadoop.hbase.master.HMaster.balance(HMaster.java:1514)
              at org.apache.hadoop.hbase.master.HMaster.balance(HMaster.java:1445)
              at org.apache.hadoop.hbase.master.balancer.BalancerChore.chore(BalancerChore.java:49)
              at org.apache.hadoop.hbase.ScheduledChore.run(ScheduledChore.java:186)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
              at org.apache.hadoop.hbase.JitterScheduledThreadPoolExecutorImpl$JitteredRunnableScheduledFuture.run(JitterScheduledThreadPoolExecutorImpl.java:111)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      2018-07-24 22:08:20,101 INFO  [LruBlockCacheStatsExecutor] hfile.LruBlockCache: totalSize=4.61 MB, freeSize=6.14 GB, max=6.14 GB, blockCount=0, accesses=0, hits=0, hitRatio=0, cachingAccesses=0, cachingHits=0, cachingHitsRatio=0,evictions=119, evicted=0, evictedPerRun=0.0
      2018-07-24 22:08:38,101 INFO  [master/ve0524:16000.Chore.1] balancer.StochasticLoadBalancer: start StochasticLoadBalancer.balancer, initCost=280.4765419610035, functionCost=RegionCountSkewCostFunction : (500.0, 0.4992354740061162); PrimaryRegionCountSkewCostFunction : (500.0, 0.0); MoveCostFunction : (7.0, 0.0); ServerLocalityCostFunction : (25.0, 0.5961002123692674); RackLocalityCostFunction : (15.0, 0.0); TableSkewCostFunction : (35.0, 0.3660578386605784); RegionReplicaHostCostFunction : (100000.0, 0.0); RegionReplicaRackCostFunction : (10000.0, 0.0); ReadRequestCostFunction : (5.0, 0.0); WriteRequestCostFunction : (5.0, 0.0); MemStoreSizeCostFunction : (5.0, 0.0); StoreFileCostFunction : (5.0, 0.6288550591186913);
      2018-07-24 22:08:38,103 ERROR [master/ve0524:16000.Chore.1] hbase.ScheduledChore: Caught error
      java.lang.ArrayIndexOutOfBoundsException: 100
              at org.apache.hadoop.hbase.master.balancer.BaseLoadBalancer$Cluster.removeRegion(BaseLoadBalancer.java:872)
              at org.apache.hadoop.hbase.master.balancer.BaseLoadBalancer$Cluster.regionMoved(BaseLoadBalancer.java:827)
              at org.apache.hadoop.hbase.master.balancer.BaseLoadBalancer$Cluster.doAction(BaseLoadBalancer.java:723)
              at org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer.balanceCluster(StochasticLoadBalancer.java:399)
              at org.apache.hadoop.hbase.master.balancer.StochasticLoadBalancer.balanceCluster(StochasticLoadBalancer.java:318)
              at org.apache.hadoop.hbase.master.HMaster.balance(HMaster.java:1514)
              at org.apache.hadoop.hbase.master.HMaster.balance(HMaster.java:1445)
              at org.apache.hadoop.hbase.master.balancer.BalancerChore.chore(BalancerChore.java:49)
              at org.apache.hadoop.hbase.ScheduledChore.run(ScheduledChore.java:186)
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
              at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
              at org.apache.hadoop.hbase.JitterScheduledThreadPoolExecutorImpl$JitteredRunnableScheduledFuture.run(JitterScheduledThreadPoolExecutorImpl.java:111)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
              at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                stack Michael Stack
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: